Re: [scikit-learn] Inclusion of an LSTM Classifier

2019-02-17 Thread Piotr Szymański
I've created a couple of scikit-learn compatible wrappers and model
generators for scikit-multilearn: http://scikit.ml/multilabeldnn.html

Depends on what library you prefer, here's some examples on how to use
LSTMs via:
- Keras:
https://medium.com/@dclengacher/keras-lstm-recurrent-neural-networks-c1f5febde03d
- pyTorch:
https://pytorch.org/tutorials/beginner/nlp/sequence_models_tutorial.html

Just create a relevant model generating function, take a wrapper from
scikit-multilearn, and put it into the scikit pipeline anyway you want.

Best,
Piotr Szymanski
Scikit-multilearn Maintainer

On Sun, Feb 17, 2019 at 7:55 PM David Burns 
wrote:

> There is an sklearn wrapper for Keras models in the Keras library. That's
> an easy way to use LSTM in sklearn. Also the sklearn estimator API is
> pretty easy to figure out if you want to roll your own wrapper for any
> model really.
> ___
> scikit-learn mailing list
> scikit-learn@python.org
> https://mail.python.org/mailman/listinfo/scikit-learn
>


-- 
Piotr Szymański
nied...@gmail.com
___
scikit-learn mailing list
scikit-learn@python.org
https://mail.python.org/mailman/listinfo/scikit-learn


Re: [scikit-learn] Inclusion of an LSTM Classifier

2019-02-17 Thread David Burns
There is an sklearn wrapper for Keras models in the Keras library. That's
an easy way to use LSTM in sklearn. Also the sklearn estimator API is
pretty easy to figure out if you want to roll your own wrapper for any
model really.
___
scikit-learn mailing list
scikit-learn@python.org
https://mail.python.org/mailman/listinfo/scikit-learn


Re: [scikit-learn] Fw: Inclusion of an LSTM Classifier

2019-02-17 Thread Gael Varoquaux
Hi,

Thank you for the suggestion.

Such an approach is a deep-learning approach, and is out-of-scope for
scikit-learn:
https://scikit-learn.org/stable/faq.html#why-is-there-no-support-for-deep-or-reinforcement-learning-will-there-be-support-for-deep-or-reinforcement-learning-in-scikit-learn

Best,

Gaël

On Sun, Feb 17, 2019 at 09:18:04AM +, Yash Raj Rai wrote:


> ━━━
> From: Yash Raj Rai
> Sent: Sunday, February 17, 2019 2:34 PM
> To: scikit-learn@python.org
> Subject: Inclusion of an LSTM Classifier


> Hello

> I wanted to know if there are any on-going projects on LSTM Classifier model 
> in
> sklearn. If no, is there any possibility of its inclusion in the library?

> Is there anything beyond the contributor's guidelines that I need to know for
> the introduction of a new model?

> Than you.



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


-- 
Gael Varoquaux
Senior Researcher, INRIA Parietal
NeuroSpin/CEA Saclay , Bat 145, 91191 Gif-sur-Yvette France
Phone:  ++ 33-1-69-08-79-68
http://gael-varoquaux.infohttp://twitter.com/GaelVaroquaux
___
scikit-learn mailing list
scikit-learn@python.org
https://mail.python.org/mailman/listinfo/scikit-learn


[scikit-learn] Fw: Inclusion of an LSTM Classifier

2019-02-17 Thread Yash Raj Rai



From: Yash Raj Rai
Sent: Sunday, February 17, 2019 2:34 PM
To: scikit-learn@python.org
Subject: Inclusion of an LSTM Classifier


Hello

I wanted to know if there are any on-going projects on LSTM Classifier model in 
sklearn. If no, is there any possibility of its inclusion in the library?

Is there anything beyond the contributor's guidelines that I need to know for 
the introduction of a new model?

Than you.

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