Skip to content

Commit

Permalink
Prepare for first GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahshi committed Dec 7, 2023
1 parent 9a45980 commit dc489ef
Show file tree
Hide file tree
Showing 8 changed files with 15,864 additions and 273 deletions.
4 changes: 2 additions & 2 deletions Train_Supervised_Variational.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@

# Step 2: Read in your DataFrame, drop rows with NaN in specific oxide columns, fill NaNs, and filter minerals
lepr_df_load = mm.load_df('Validation_Data/lepr_allphases_lim_sp.csv')
lepr_df, lepr_df_ex = mm.prep_df(lepr_df_load)
lepr_df_pred, lepr_probability_matrix = mm.predict_class_prob(lepr_df)
lepr_df, lepr_df_ex = mm.prep_df_nn(lepr_df_load)
lepr_df_pred, lepr_probability_matrix = mm.predict_class_prob_nn(lepr_df)

lepr_bayes_valid_report = classification_report(
lepr_df_pred['Mineral'], lepr_df_pred['Predict_Mineral'], zero_division=0
Expand Down
14,475 changes: 14,475 additions & 0 deletions Validation_Data/testfile.csv

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions mineralML_colab.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"import pandas as pd\n",
"from sklearn.metrics import classification_report\n",
"\n",
"!pip install Cython hdbscan\n",
"!pip install Cython\n",
"!pip install -i https://test.pypi.org/simple/ mineralML==0.0.0.4\n",
"import mineralML as mm\n",
"\n",
Expand Down Expand Up @@ -119,8 +119,6 @@
"metadata": {},
"outputs": [],
"source": [
"\n",
"# Look at the predicted mineral dataframe. \n",
"\n",
"df_pred_nn\n"
]
Expand Down
Loading

0 comments on commit dc489ef

Please sign in to comment.