# Feature classifier error with MIDORI

**URL:** https://forum.qiime2.org/t/feature-classifier-error-with-midori/13232
**Category:** User Support
**Tags:** feature-classifier
**Created:** [January 16, 2020, 5:57am UTC](https://forum.qiime2.org/t/feature-classifier-error-with-midori/13232 "2020-01-16T05:57:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![haqqy.26](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/h/f19dbf/32.png) [@haqqy.26](https://forum.qiime2.org/u/haqqy.26)
#### Post date: [January 16, 2020, 5:57am UTC](https://forum.qiime2.org/t/feature-classifier-error-with-midori/13232/1 "2020-01-16T05:57:01Z")

</div>

Hello nice to meet you, I'm using qiime version 2019.10 installed anaconda3. I tried running feature classifier used classify naïve-bayer and used Midori Reference because to primer COI with command:

**(qiime2-2019.10) haqqy@LAPTOP-3OTV2K3C:/mnt/e/GUT CONTENT EPINEPHELUS/MIDORI\_COI$ qiime feature-classifier fit-c**  
**lassifier-naive-bayes --i-reference-reads ref-seqs.qza --i-reference-taxonomy GUT\_CONTENT\_COI\_ref\_taxonomy.qza -**  
**-o-classifier GUT\_CONTENT\_COI\_classifier.qza --verbose**

but the responded like this:

**/me/haqqy/anaconda3/envs/qiime2-2019.10/lib/python3.6/site-packages/q2\_feature\_classifier/classifier.py:102: UserWarning: The TaxonomicClassifier artifact that results from this method was trained using scikit-learn version 0.21.2. It cannot be used with other versions of scikit-learn. (While the classifier may complete successfully, the results will be unreliable.)  
\*\* warnings.warn(warning, UserWarning)**  
**Segmentation fault (core dumped)**

and i decided to running used classify-sklear with command :

**qiime2-2019.10) haqqy@LAPTOP-3OTV2K3C:/mnt/e/GUT CONTENT EPINEPHELUS/MIDORI\_COI$ qiime feature-classifier classify-sklearn --i-classifier cox1\_classifier.qza --i-reads GUT\_CONTENT\_COI\_ref-seqs.qza --o-classification GUT\_CONTENT\_COI-taxonomy.qza --verbose  
 Traceback (most recent call last):  
\*\* File "/home/haqqy/anaconda3/envs/qiime2-2019.10/lib/python3.6/site-packages/q2cli/commands.py", line 328, in call results = action(arguments)  
\*\* File "\</home/haqqy/anaconda3/envs/qiime2-2019.10/lib/python3.6/site-packages/decorator.py:decorator-gen-347\>", line 2, in classify\_sklearn File "/home/haqqy/anaconda3/envs/qiime2-2019.10/lib/python3.6/site-packages/qiime2/sdk/action.py", line 229, in bound\_callable spec.view\_type, recorder) File "/home/haqqy/anaconda3/envs/qiime2-2019.10/lib/python3.6/site-packages/qiime2/sdk/result.py", line 289, in \_view result = transformation(self.\_archiver.data\_dir) File "/home/haqqy/anaconda3/envs/qiime2-2019.10/lib/python3.6/site-packages/qiime2/core/transform.py", line 70, in transformation new\_view = transformer(view) File "/home/haqqy/anaconda3/envs/qiime2-2019.10/lib/python3.6/site-packages/q2\_feature\_classifier/\_taxonomic\_classifier.py", line 64, in \_1 % (sklearn\_version, sklearn.version))ValueError: The scikit-learn version (0.20.2) used to generate this artifact does not match the current version of scikit-learn installed (0.21.2). Please retrain your classifier for your current deployment to prevent data-corruption errors.**

**Plugin error from feature-classifier: The scikit-learn version (0.20.2) used to generate this artifact does not match the current version of scikit-learn installed (0.21.2). Please retrain your classifier for your current deployment to prevent data-corruption errors.**  
**See above for debug info.**

Would you help me what happened with this?

---

<div class="post-metadata">

### Author: ![timanix](https://forum.qiime2.org/user_avatar/forum.qiime2.org/timanix/32/17879_2.png) [@timanix](https://forum.qiime2.org/u/timanix)
#### Post date: [January 16, 2020, 9:48am UTC](https://forum.qiime2.org/t/feature-classifier-error-with-midori/13232/2 "2020-01-16T09:48:01Z")

</div>

> [@haqqy.26](#):
>
> **Plugin error from feature-classifier: The scikit-learn version (0.20.2) used to generate this artifact does not match the current version of scikit-learn installed (0.21.2). Please retrain your classifier for your current deployment to prevent data-corruption errors.**  
> **See above for debug info.**

Hi!  
As it is written in the error message, you are using classifier, trained with older version of scikit-learn.  
To proceed, you have several options:

- Download the classifer for your database trained with the latest version of Qiime2.
- Train a new classifier denovo for your database and your rRNA regions  
[Training feature classifiers with q2-feature-classifier — QIIME 2 2019.10.0 documentation](https://docs.qiime2.org/2019.10/tutorials/feature-classifier/)
- Install older version of Qiime2, which still uses scikit-learn version (0.20.2)

---

<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: [February 16, 2020, 3:48pm UTC](https://forum.qiime2.org/t/feature-classifier-error-with-midori/13232/3 "2020-02-16T15:48:01Z")

</div>

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