# Training a Naive Bayes classifier error

**URL:** https://forum.qiime2.org/t/training-a-naive-bayes-classifier-error/14913
**Category:** Technical Support
**Created:** [May 12, 2020, 11:08pm UTC](https://forum.qiime2.org/t/training-a-naive-bayes-classifier-error/14913 "2020-05-12T23:08:04Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![arielmarie2194](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/a/e8c25b/32.png) [@arielmarie2194](https://forum.qiime2.org/u/arielmarie2194)
#### Post date: [May 12, 2020, 11:08pm UTC](https://forum.qiime2.org/t/training-a-naive-bayes-classifier-error/14913/1 "2020-05-12T23:08:04Z")

</div>

While training a Naive Bayes classifier to QIIME 2 I got an error message that I cannot figure out: Plugin error from feature-classifier:

Unable to allocate 1.00 GiB for an array with shape (134217728,) and data type float64

Debug info has been saved to /tmp/qiime2-q2cli-err-q0\_rwg34.log

---

<div class="post-metadata">

### Author: ![jwdebelius](https://forum.qiime2.org/user_avatar/forum.qiime2.org/jwdebelius/32/9655_2.png) [@jwdebelius](https://forum.qiime2.org/u/jwdebelius)
#### Post date: [May 12, 2020, 11:48pm UTC](https://forum.qiime2.org/t/training-a-naive-bayes-classifier-error/14913/2 "2020-05-12T23:48:40Z")

</div>

Hi @arielmarie2194,

Check out this post about the memory error.

> [@Feature-classifiers error](https://forum.qiime2.org/t/feature-classifiers-error/11946):
>
> Hi, I'm having difficulties with the feature-classifier plugin, in qiime 2019.7. When I run the following command: qiime feature-classifier classify-sklearn --i-classifier silva-132-99-nb-classifier.qza --i-reads rep-seqs.qza --p-pre-dispatch 'n\_jobs' --o-classification taxonomy.qza --verbose I receive this error: Traceback (most recent call last): File "/home/qiime2/miniconda/envs/qiime2-2019.7/lib/python3.6/site-packages/q2cli/commands.py", line 327, in call results = action(\*\*…

If you can use a pre-trained classifier, though, that is my recommendation.

Best,  
Justine

---

<div class="post-metadata">

### Author: ![system](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/3X/2/1/21af5fe23cb6f4579467c66a9ed94e55274ca7bd.svg) [@system](https://forum.qiime2.org/u/system)
#### Post date: [June 13, 2020, 5:48am UTC](https://forum.qiime2.org/t/training-a-naive-bayes-classifier-error/14913/3 "2020-06-13T05:48:41Z")

</div>

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
