Skip to content
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

Rbf sampler #127

Merged
merged 2 commits into from
Apr 18, 2016
Merged

Rbf sampler #127

merged 2 commits into from
Apr 18, 2016

Conversation

danthedaniel
Copy link
Contributor

What does this PR do?

  • Added RBFSampler to collection of feature preprocessors

Fixes #124

Where should the reviewer start?

Check out the documentation at documentation/pipeline_operators/kernel_approximation/RBFSampler.md.

The _rbf function is in tpot.py and start at line 1092

How should this PR be tested?

By commenting out most other operators you should be able to force TPOT to make use of the RBFSampler.

Any background context you want to provide?

No

What are the relevant issues?

#124

Questions:

  • Do the docs need to be updated?

Yes and I have updated them.

  • Does this PR add new (Python) dependencies?

No.

teaearlgraycold added 2 commits April 17, 2016 16:42
Also:

* refactored non_feature_columns into single instance attribute
* changed n_components filtering logic to match that of the export_utils for PCA and RBF
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 28.706% when pulling f001428 on teaearlgraycold:rbf_sampler into a27985f on rhiever:master.


# NOTE: Make sure that the class is labeled 'class' in the data file
tpot_data = pd.read_csv('PATH/TO/DATA/FILE', sep='COLUMN_SEPARATOR')
training_indices, testing_indices = train_test_split(tpot_data.index, stratify = tpot_data['class'].values, train_size=0.75, test_size=0.2$
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think a ) is missing here.

@rhiever rhiever merged commit cbcafed into EpistasisLab:master Apr 18, 2016
@rhiever
Copy link
Contributor

rhiever commented Apr 18, 2016

Well done! Not too bad of a code base, right? :-)

I'll have to add details on how to run mkdocs to the contributing section. Expect updates on that to come soon.

I'll fix the parenthesis issue now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants