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

Add a very simple example #108

Closed
ardunn opened this issue Oct 27, 2018 · 4 comments
Closed

Add a very simple example #108

ardunn opened this issue Oct 27, 2018 · 4 comments
Assignees

Comments

@ardunn
Copy link
Contributor

ardunn commented Oct 27, 2018

^^^^^^^^

@ardunn ardunn self-assigned this Oct 27, 2018
@ardunn ardunn changed the title examples need update once code is more stable Add a very simple example Dec 11, 2018
@ardunn
Copy link
Contributor Author

ardunn commented Dec 11, 2018

This should be a notebook or .py file predicting a target property. It can literally be something along these lines (and should include a test making sure the notebook works with each build). The number of lines of code should be about 10-20 (very short)

from automatminer.pipe import MatPipe, default_config
from matminer.datasets.dataset_retrieval import load_dataset
from sklearn.metrics import r2_score

df = load_dataset("elastic_tensor_2015")
pipe = MatPipe(**default_config)

df = df.rename(columns={"formula": "composition})["composition", "structure", "K_VRH"]
predicted = pipe.benchmark(df, "K_VRH", test_spec=0.2)

y_true = predicted["K_VRH"]
y_test = predicted["K_VRH predicted"]
print(r2_score(y_true, y_test))

The explanations should be longer. The example should be up to good data science standards (i.e., don't just use R2 here like I do, use MSE). The example should be brief but complete

@ardunn ardunn added the ugrads label Dec 11, 2018
@ADA110
Copy link
Contributor

ADA110 commented Dec 30, 2018

Has the change to get_present_config been completely pushed, or is it still a work in progress? I'd imagine that I would need to replace default_config with the new tools

@ardunn
Copy link
Contributor Author

ardunn commented Dec 30, 2018

@ADA110 pretty much completely pushed.

@ardunn
Copy link
Contributor Author

ardunn commented Jan 17, 2019

closed by #158

@ardunn ardunn closed this as completed Jan 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants