[scikit-learn] Along with Predictive probability and class name how to get the multi-text(text) belonging to that class

2019-08-13 Thread Gunasekar K
Hi Team,

Greetings!!!

Assuming ''Humpty Dumpty" is text trained under given specific model
belonging to class called "cartoon character" in multi-text classification
model.

*model.predict_proba([Invoice_parameter])*100* gives the probability of
belongings to specific class.

But how come I can retrieve the *text* for that probability hit for that
class.

for example,

Invoice_parameter= input()  on the fly input

"Humpty Dumpty sat on the wall"

*model.predict_proba([Invoice_parameter])*100*

I get probability of 99.09 (rounded to two decimal places) to character
class but i also need to retrieve the text  Humpty Dumpty.

Any help or suggestions are appreciated.

Thanks in advance.

Kind regards,
GK
___
scikit-learn mailing list
scikit-learn@python.org
https://mail.python.org/mailman/listinfo/scikit-learn


Re: [scikit-learn] Predictive probability from cross_validate

2019-08-13 Thread Guillaume Lemaître
As the note is saying, you should not use this approach to evaluate your
model.
You should use cross_val_score instead.

On Tue, 13 Aug 2019 at 04:30, charujing123  wrote:

> hi
>  this function is exactly what i wanted. However, the description of this
> function contained this: Passing these predictions into an evaluation
> metric may not be a valid way to measure generalization performance.
> Could i use this prediction to calculate the accuracy? I am not sure after
> seeing this sentence.
> Thanks.
>
> 2019-08-13
> --
> charujing123
> --
>
> *发件人:*Guillaume Lemaître 
> *发送时间:*2019-08-12 23:16
> *主题:*Re: [scikit-learn] Predictive probability from cross_validate
> *收件人:*"Scikit-learn mailing list"
> *抄送:*
>
> cross_validate should not be used to make predictions but to evaluate the
> performance, the parameter, etc of models.
> You probably want to check cross_val_predict to get the prediction.
> However, be aware of what it involves:
>
> https://scikit-learn.org/stable/modules/cross_validation.html#obtaining-predictions-by-cross-validation
>
> On Mon, 5 Aug 2019 at 16:57, Rujing Zha  wrote:
>
>>
>> Hi
>> How to acquire the probability in the cross_validate function?
>> Thanks
>> Rujing
>>
>>
>>
>> --
>> 发自我的网易邮箱手机智能版
>>
>>
>>
>> 在 2019-08-05 22:31:38,"Andreas Mueller"  写道:
>>
>> As usual, I agree ;)
>> I think it would be good to call out particularly important bugfixes so
>> they get reviews.
>> We might also want to think about how we can organize the issue tracker
>> better.
>>
>> Having more full-time people on the project certainly means more activity
>> but ideally we can use some of that time to make the issue tracker more
>> organized.
>>
>>
>> On 8/5/19 9:21 AM, Joel Nothman wrote:
>>
>> Yay for technology! Awesome to see you all and have some matters
>> clarified.
>>
>> Adrin is right that the issue tracker is increasingly overwhelming
>> (because there are more awesome people hired to work on the project, more
>> frequent sprints, etc). This meeting is a useful summary.
>>
>> The meeting mostly focussed on big features. We should be careful to not
>> leave behind important bugs fixes and work originating outside the core
>> devs.
>>
>> Despite that: Some of Guillaume's activities got cut off. I think it
>> would be great to progress both on stacking and resampling before the next
>> release.
>>
>> I also think these meetings should, as a standing item, note the
>> estimated upcoming release schedule, to help us remain aware of that
>> cadence.
>>
>> Good night!
>>
>> J
>>
>> ___
>> scikit-learn mailing 
>> listscikit-learn@python.orghttps://mail.python.org/mailman/listinfo/scikit-learn
>>
>>
>>
>>
>>
>> ___
>> scikit-learn mailing list
>> scikit-learn@python.org
>> https://mail.python.org/mailman/listinfo/scikit-learn
>>
>
>
> --
> Guillaume Lemaitre
> INRIA Saclay - Parietal team
> Center for Data Science Paris-Saclay
> https://glemaitre.github.io/
>
> ___
> scikit-learn mailing list
> scikit-learn@python.org
> https://mail.python.org/mailman/listinfo/scikit-learn
>


-- 
Guillaume Lemaitre
INRIA Saclay - Parietal team
Center for Data Science Paris-Saclay
https://glemaitre.github.io/
___
scikit-learn mailing list
scikit-learn@python.org
https://mail.python.org/mailman/listinfo/scikit-learn


Re: [scikit-learn] Along with Predictive probability and class name how to get the multi-text(text) belonging to that class

2019-08-13 Thread Guillaume Lemaître
I am unsure if it what you need but you can take the argmax (or call
predict) and get the value of model.classes_.
In short, model.classes_[model.predict([invoice_parameter])].

On Tue, 13 Aug 2019 at 09:01, Gunasekar K  wrote:

> Hi Team,
>
> Greetings!!!
>
> Assuming ''Humpty Dumpty" is text trained under given specific model
> belonging to class called "cartoon character" in multi-text classification
> model.
>
> *model.predict_proba([Invoice_parameter])*100* gives the probability of
> belongings to specific class.
>
> But how come I can retrieve the *text* for that probability hit for that
> class.
>
> for example,
>
> Invoice_parameter= input()  on the fly input
>
> "Humpty Dumpty sat on the wall"
>
> *model.predict_proba([Invoice_parameter])*100*
>
> I get probability of 99.09 (rounded to two decimal places) to character
> class but i also need to retrieve the text  Humpty Dumpty.
>
> Any help or suggestions are appreciated.
>
> Thanks in advance.
>
> Kind regards,
> GK
>
>
>
>
> ___
> scikit-learn mailing list
> scikit-learn@python.org
> https://mail.python.org/mailman/listinfo/scikit-learn
>


-- 
Guillaume Lemaitre
INRIA Saclay - Parietal team
Center for Data Science Paris-Saclay
https://glemaitre.github.io/
___
scikit-learn mailing list
scikit-learn@python.org
https://mail.python.org/mailman/listinfo/scikit-learn


Re: [scikit-learn] Along with Predictive probability and class name how to get the multi-text(text) belonging to that class

2019-08-13 Thread Gunasekar K
Thank you for your e-mail.

I am not looking for class prediction, as I am using similar concept to
recognize them.
Exactly I am looking for the text which points to the class as identified
by the model.


"Humpty Dumpty sat on the wall"

when above statement fed to the pre-trained/saved model it returns the
class output as "Character".

Also I want the text part which trained for that respective class. Assuming
"Humpty Dumpty" is trained under "Character" class.

Thank you,

Best regards




On Tue, 13 Aug 2019 at 13:21, Guillaume Lemaître 
wrote:

> I am unsure if it what you need but you can take the argmax (or call
> predict) and get the value of model.classes_.
> In short, model.classes_[model.predict([invoice_parameter])].
>
> On Tue, 13 Aug 2019 at 09:01, Gunasekar K  wrote:
>
>> Hi Team,
>>
>> Greetings!!!
>>
>> Assuming ''Humpty Dumpty" is text trained under given specific model
>> belonging to class called "cartoon character" in multi-text classification
>> model.
>>
>> *model.predict_proba([Invoice_parameter])*100* gives the probability of
>> belongings to specific class.
>>
>> But how come I can retrieve the *text* for that probability hit for that
>> class.
>>
>> for example,
>>
>> Invoice_parameter= input()  on the fly input
>>
>> "Humpty Dumpty sat on the wall"
>>
>> *model.predict_proba([Invoice_parameter])*100*
>>
>> I get probability of 99.09 (rounded to two decimal places) to character
>> class but i also need to retrieve the text  Humpty Dumpty.
>>
>> Any help or suggestions are appreciated.
>>
>> Thanks in advance.
>>
>> Kind regards,
>> GK
>>
>>
>>
>>
>> ___
>> scikit-learn mailing list
>> scikit-learn@python.org
>> https://mail.python.org/mailman/listinfo/scikit-learn
>>
>
>
> --
> Guillaume Lemaitre
> INRIA Saclay - Parietal team
> Center for Data Science Paris-Saclay
> https://glemaitre.github.io/
> ___
> scikit-learn mailing list
> scikit-learn@python.org
> https://mail.python.org/mailman/listinfo/scikit-learn
>
___
scikit-learn mailing list
scikit-learn@python.org
https://mail.python.org/mailman/listinfo/scikit-learn


[scikit-learn] Fwd: [Nairobi, Kenya WiMLDS] OS sprint (June 2019): Impact Report

2019-08-13 Thread Reshama Shaikh
Hello,
(I can't quite figure out how to respond to a thread on the mailing list,
maybe because I receive a digest version.)

Hi Joel,
WiMLDS has 72 chapters worldwide... including... Australia:
1.  Sydney (355 members)
https://www.meetup.com/Sydney-Women-in-Machine-Learning-and-Data-Science/

2.  Melbourne (964 members)
https://www.meetup.com/Melbourne-Women-in-Machine-Learning-and-Data-Science/

One day, we could have a scikit-learn sprint in Australia.  :)

--
Reshama Shaikh 

NYC WiMLDS

NYC PyLadies

--


-- Forwarded message -
From: Reshama Shaikh 
Date: Tue, Aug 6, 2019 at 5:20 PM
Subject: Fwd: [Nairobi, Kenya WiMLDS] OS sprint (June 2019): Impact Report
To: 


Hello,

On March 12, 2019, I had posted to this mailing list looking for a
contributor for our Nairobi, WiMLDS sprint:
https://mail.python.org/pipermail/scikit-learn/2019-March/003048.html

Happy to share the sprint happened (on June 22, 2019) and I just published
the Impact Report:
https://reshamas.github.io/nairobi-wimlds-2019-scikit-learn-sprint-impact-report/

Thanks to all contributors who assisted.

Best,
Reshama
--
Reshama Shaikh 

NYC WiMLDS

NYC PyLadies

--
___
scikit-learn mailing list
scikit-learn@python.org
https://mail.python.org/mailman/listinfo/scikit-learn