-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unable to run classifier file #2
Comments
Can you provide more information? are you getting an error? how are you running the program? |
I am running it in spyder its not giving any sort of error it just
displaying the bar-graph of label vs count which is a output of dataprep
file.
…On Fri, 24 May 2019, 10:51 pm Nishit, ***@***.***> wrote:
Can you provide more information? are you getting an error? how are you
running the program?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2?email_source=notifications&email_token=AKXUMEGA4JSMA2VIDBX3WOLPXAP27A5CNFSM4HPRJQMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWGA62A#issuecomment-495718248>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKXUMEGVEUYTGFEAT4GQFGTPXAP27ANCNFSM4HPRJQMA>
.
|
This is the expected output. if you run the classifier.py file it will generate feature importance plot as you can see is what being called at the end of the file. To print confusion matrix, you need to manually run the function "build_confusion_matrix". It will then print matrix in console. Try running the code till the part where "build_confusion_matrix" is defined and then run the call commands thereafter. (run till line # 211 then call function in the line # 215 to print matrix for naive bayes for example)The matrix shown in the file were manually copied my me for illustration purposes. |
i have tried to run that particular section of code of confusion matrix,
its giving errors
module not found error: no module named 'sklearn.cross_validation'
NameError: name 'build_confusion_matrix' is not defined
…On Fri, 24 May 2019, 11:14 pm Nishit, ***@***.***> wrote:
This is the expected output. if you run the classifier.py file it will
generate feature importance plot as you can see is what being called at the
end of the file. To print confusion matrix, you need to manually run the
function "build_confusion_matrix". It will then print matrix in console.
Try running the code till the part where "build_confusion_matrix" is
defined and then run the call commands thereafter. (run till line # 211
then call function in the line # 215 to print matrix for naive bayes for
example)The matrix shown in the file were manually copied my me for
illustration purposes.
let me know if you have issues.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2?email_source=notifications&email_token=AKXUMEGOUJ4LVCRPS3RVAO3PXASRBA5CNFSM4HPRJQMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWGDFUQ#issuecomment-495727314>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKXUMEEYDQ52UQWCXSW3OJLPXASRBANCNFSM4HPRJQMA>
.
|
you need to check your sklearn version. In the new sklearn version cross_validation has been deprecated. use "sklearn.model_selection" if you are using newer version. |
that error is gone but it still gives errors build_confusion_matrix is not
defined
and
no module name genism error
…On Fri, 24 May 2019, 11:49 pm Nishit, ***@***.***> wrote:
you need to check your sklearn version. In the new sklearn version
cross_validation has been deprecated. use "sklearn.model_selection" if you
are using newer version.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2?email_source=notifications&email_token=AKXUMEF7AGHOACHLNWW3P23PXAWR7A5CNFSM4HPRJQMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWGGOEI#issuecomment-495740689>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKXUMEDUCFFD3ND3NELR6Q3PXAWR7ANCNFSM4HPRJQMA>
.
|
make sure you run the function definition and then call the function. no need to worry about gensim as its not being used in the program at the moment. do you see the "build_confusion_matrix" in env/variable window? |
no confusion matrix is visible in variable explorer only input files(.csv
files) are there.
…On Fri, 24 May 2019, 11:59 pm Nishit, ***@***.***> wrote:
make sure you run the function definition and then call the function. no
need to worry about gensim as its not being used in the program at the
moment. do you see the "build_confusion_matrix" in env/variable window?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2?email_source=notifications&email_token=AKXUMEH4QYIIZSMA4EYTTI3PXAXXNA5CNFSM4HPRJQMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWGHMVA#issuecomment-495744596>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKXUMEFYBQBW3IO6D4XJDA3PXAXXNANCNFSM4HPRJQMA>
.
|
sir
i am trying to run individual code now one more thing that comes
up....classifier file is importing featureSelection file but its showing
error in console saying featureSelection is not defined.
…On Sat, 25 May 2019, 12:02 am Neha Kirar, ***@***.***> wrote:
no confusion matrix is visible in variable explorer only input files(.csv
files) are there.
On Fri, 24 May 2019, 11:59 pm Nishit, ***@***.***> wrote:
> make sure you run the function definition and then call the function. no
> need to worry about gensim as its not being used in the program at the
> moment. do you see the "build_confusion_matrix" in env/variable window?
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#2?email_source=notifications&email_token=AKXUMEH4QYIIZSMA4EYTTI3PXAXXNA5CNFSM4HPRJQMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWGHMVA#issuecomment-495744596>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AKXUMEFYBQBW3IO6D4XJDA3PXAXXNANCNFSM4HPRJQMA>
> .
>
|
sir i am still not able to run, confusion matrix is not visible in variable
explorer. can you please help
…On Sat, 25 May 2019, 12:21 am Neha Kirar, ***@***.***> wrote:
sir
i am trying to run individual code now one more thing that comes
up....classifier file is importing featureSelection file but its showing
error in console saying featureSelection is not defined.
On Sat, 25 May 2019, 12:02 am Neha Kirar, ***@***.***> wrote:
> no confusion matrix is visible in variable explorer only input files(.csv
> files) are there.
>
> On Fri, 24 May 2019, 11:59 pm Nishit, ***@***.***> wrote:
>
>> make sure you run the function definition and then call the function. no
>> need to worry about gensim as its not being used in the program at the
>> moment. do you see the "build_confusion_matrix" in env/variable window?
>>
>> —
>> You are receiving this because you authored the thread.
>> Reply to this email directly, view it on GitHub
>> <#2?email_source=notifications&email_token=AKXUMEH4QYIIZSMA4EYTTI3PXAXXNA5CNFSM4HPRJQMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWGHMVA#issuecomment-495744596>,
>> or mute the thread
>> <https://github.com/notifications/unsubscribe-auth/AKXUMEFYBQBW3IO6D4XJDA3PXAXXNANCNFSM4HPRJQMA>
>> .
>>
>
|
Can you send an email to [email protected] with detailed steps on how you are running the program and screenshots? without seeing exact steps it is hard to debug for me. what happens when you run the function definition or classifier.py? |
sir |
Hello,
I have that in my mind and will find some time over this weekend
to look into this. sorry about the delay.
Thanks
Nishit
…On Tue, Jun 11, 2019 at 6:38 AM nehakirar ***@***.***> wrote:
sir
I am still facing the same issue, can you guide me further.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2?email_source=notifications&email_token=ACUSBT3YG4DTES4SD5PCALTPZ56C5A5CNFSM4HPRJQMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXMWHZA#issuecomment-500786148>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACUSBT3JQXMTUWANLLRV5GTPZ56C5ANCNFSM4HPRJQMA>
.
|
i am not able to get confusion matrix of all the classification algorithm we have used in this project. please help. Also want to know if you have any research paper on this project it would be great help.
The text was updated successfully, but these errors were encountered: