-
Notifications
You must be signed in to change notification settings - Fork 50
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
Comments
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 |
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 |
@ADA110 pretty much completely pushed. |
closed by #158 |
^^^^^^^^
The text was updated successfully, but these errors were encountered: