Refefer / fastxml

FastXML / PFastXML / PFastreXML - Implementation of Extreme Multi-label Classification
Other
148 stars 47 forks source link

Not able to execute fastxml.py file . #10

Closed purviprajapati196 closed 5 years ago

purviprajapati196 commented 6 years ago

I did all the requirements. numpy>=1.8.1 scipy>=0.13.3 scikit-learn>=0.17 Cython>=0.23.4 future>=0.16.0

after that i downloaded deliciousLarge dataset from Extreme Classification Repository. I saved this dataset in fastxml_master folder.

I tried following command : fxml.py delicious.model deliciousLarge_train.txt --standard-dataset --verbose train --iters 5 --trees 20 --label-weight propensity --alpha 1e-4 --leaf-classifiers --no-remap-labels

I got Syntax error. at delicious.model. what is model file?

Refefer commented 6 years ago

Fxml.py is actually a command line application. It appears you tried to run that from within a python shell instead of from the command line.

On Thu, Apr 12, 2018, 4:58 AM purviprajapati196 notifications@github.com wrote:

I did all the requirements. numpy>=1.8.1 scipy>=0.13.3 scikit-learn>=0.17 Cython>=0.23.4 future>=0.16.0

after that i downloaded deliciousLarge dataset from Extreme Classification Repository. I saved this dataset in fastxml_master folder.

I tried following command : fxml.py delicious.model deliciousLarge_train.txt --standard-dataset --verbose train --iters 5 --trees 20 --label-weight propensity --alpha 1e-4 --leaf-classifiers --no-remap-labels

I got Syntax error. at delicious.model. what is model file?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Refefer/fastxml/issues/10, or mute the thread https://github.com/notifications/unsubscribe-auth/ABdKFf4Ntw1AsLkN6ufw74emIJGSfAiOks5tn0FPgaJpZM4TRpzq .

purviprajapati196 commented 6 years ago

Still I am getting syntax error on command prompt... kindly tell me what is model file....and i tried following command ...is it write?

fxml.py delicious.model deliciousLarge_train.txt --standard-dataset --verbose train --iters 5 --trees 20 --label-weight propensity --alpha 1e-4 --leaf-classifiers --no-remap-labels

purviprajapati196 commented 6 years ago

kindly check the error .... fxml.py is not able to search fastXML folder... New Microsoft Word Document (2).docx

purviprajapati196 commented 6 years ago

Traceback (most recent call last): File "fxml.py", line 27, in from fastxml import Inferencer, Trainer, metric_cluster File "C:\Users\admin\Desktop\fastxml-master\fastxml-master\bin\fastxml_init _.py", line 1, in from .fastxml import Inferencer File "C:\Users\admin\Desktop\fastxml-master\fastxml-master\bin\fastxml\fastxml .py", line 9, in from .inferencer import IForest, LeafComputer, Blender, IForestBlender ModuleNotFoundError: No module named 'fastxml.inferencer'

Refefer commented 6 years ago

It's looking like you didn't install fastxml correctly, if at all. I also don't know what fastxmlinit.py is - that file doesn't exist in the repo.

Did you pip install fastxml? Since it looks like you have checked out the code as well, I would suggest you run python setup.py develop to actually install the binary.

Looking at the screenshot above, you're trying to run the command using python fxml.py ... which is redundant since the setup.py script should add fxml.py to your path.

purviprajapati196 commented 6 years ago

Thanks for the reply............. Sir I tried according to your suggestions.... Now i got errors in splitter.cpp ... ididnt understand it...kindly check the attached document.

fxml_error.docx

purviprajapati196 commented 6 years ago

Sir,

Kindly check my attached document...

I am not able to solve it... kindly help me.

On Fri, Apr 13, 2018 at 9:51 PM, Andrew Stanton notifications@github.com wrote:

It's looking like you didn't install fastxml correctly, if at all. I also don't know what fastxmlinit.py is - that file doesn't exist in the repo.

Did you pip install fastxml? Since it looks like you have checked out the code as well, I would suggest you run python setup.py develop to actually install the binary.

Looking at the screenshot above, you're trying to run the command using python fxml.py ... which is redundant since the setup.py script should add fxml.py to your path.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/Refefer/fastxml/issues/10#issuecomment-381187647, or mute the thread https://github.com/notifications/unsubscribe-auth/Akizuq5yueEtTTpapk3DT88hmItUcq05ks5toNB1gaJpZM4TRpzq .

Refefer commented 6 years ago

The error produced is pretty clear - you don't have a c++11 compiler on your machine. You need it to be able to compile the Cython code.

purviprajapati196 commented 6 years ago

sir I have installed TDM-GCC-64 for C++11 compiler. still i am getting error.

purviprajapati196 commented 6 years ago

Kindly check my errors in attached file. error.docx