Re: [scikit-learn] numpy integration with random forrest implementation

2017-01-21 Thread Sebastian Raschka
It should be simply tf = RandomForestRegressor() rf.fit(X_train, y_train) rf.predict(X_validation) ... Maybe also check out this documentation example here: http://scikit-learn.org/stable/auto_examples/ensemble/plot_random_forest_regression_multioutput.html > On Jan 21, 2017, at 1:36 PM, Carlto

Re: [scikit-learn] numpy integration with random forrest implementation

2017-01-21 Thread Carlton Banks
Thanks for the Info!.. How do you set it up.. There doesn’t seem a example available for regression purposes.. > Den 21. jan. 2017 kl. 19.32 skrev Sebastian Raschka : > > Oh okay. But that shouldn’t be a problem, the RandomForestRegressor also > supports multi-outpout regression; same expecte

Re: [scikit-learn] numpy integration with random forrest implementation

2017-01-21 Thread Sebastian Raschka
Oh okay. But that shouldn’t be a problem, the RandomForestRegressor also supports multi-outpout regression; same expected target array shape: [n_samples, n_outputs] Best, Sebastian > On Jan 21, 2017, at 1:27 PM, Carlton Banks wrote: > > Not classifiication… but regression.. > and yes both t

Re: [scikit-learn] numpy integration with random forrest implementation

2017-01-21 Thread Carlton Banks
Not classifiication… but regression.. and yes both the input and output should be stored stored like that.. > Den 21. jan. 2017 kl. 19.24 skrev Sebastian Raschka : > > Hi, Carlton, > sounds like you are looking for multilabel classification and your target > array has the shape [n_samples, n_

Re: [scikit-learn] numpy integration with random forrest implementation

2017-01-21 Thread Sebastian Raschka
Hi, Carlton, sounds like you are looking for multilabel classification and your target array has the shape [n_samples, n_outputs]? If the output shape is consistent (aka all output label arrays have 13 columns), you should be fine, otherwise, you could use the MultiLabelBinarizer (http://scikit

Re: [scikit-learn] numpy integration with random forrest implementation

2017-01-21 Thread Carlton Banks
Most of the machine learning library i’ve tried has an option of of just give the dimension… In this case my input consist of an numpy.ndarray with shape (x,2050) and the output is an numpy.ndarray with shape (x,13) x is different for each set… But for each set is the number of columns consist

Re: [scikit-learn] numpy integration with random forrest implementation

2017-01-21 Thread Jacob Schreiber
I don't understand what you mean. Does each sample have a fixed number of features or not? On Sat, Jan 21, 2017 at 9:35 AM, Carlton Banks wrote: > Thanks for the response! > > If you see it in 1d then yes…. it has variable length. In 2d will the > number of columns always be constant both for th

Re: [scikit-learn] numpy integration with random forrest implementation

2017-01-21 Thread Carlton Banks
Thanks for the response! If you see it in 1d then yes…. it has variable length. In 2d will the number of columns always be constant both for the input and output. > Den 21. jan. 2017 kl. 18.25 skrev Jacob Schreiber : > > If what you're saying is that you have a variable length input, then most

Re: [scikit-learn] numpy integration with random forrest implementation

2017-01-21 Thread Jacob Schreiber
If what you're saying is that you have a variable length input, then most sklearn classifiers won't work on this data. They expect a fixed feature set. Perhaps you could try extracting a set of informative features being fed into the classifier? On Sat, Jan 21, 2017 at 3:18 AM, Carlton Banks wrot

[scikit-learn] numpy integration with random forrest implementation

2017-01-21 Thread Carlton Banks
Hi guys.. I am currently working on a ASR project in which the objective is to substitute part of the general ASR framework with some form of neural network, to see whether the tested part improves in any way. I started working with the feature extraction and tried, to make a neural network

[scikit-learn] numpy integration with random forrest implementation

2017-01-21 Thread Carlton Banks
Hi guys.. I am currently working on a ASR project in which the objective is to substitute part of the general ASR framework with some form of neural network, to see whether the tested part improves in any way. I started working with the feature extraction and tried, to make a neural network