Skip to content

Commit

Permalink
Merge pull request #17 from BU-Spark/extracting-reference-data
Browse files Browse the repository at this point in the history
Fixed error with percentage plots. New pcorrect lotss created
  • Loading branch information
zacharymeurer authored Jun 18, 2024
2 parents 5644f7c + d7a9c7e commit 2961cc4
Show file tree
Hide file tree
Showing 69 changed files with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions Extracting reference data (Isolation forest).ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@
" df = df.drop([\"Date_of_observation\", \"Observation_ID\", \"User_id\", \"User_Tree_id\", \"Species_id\", \"State_name\", \"Species_name\", \"Year\"], axis=1)\n",
" df = df.reset_index(drop=True)\n",
" \n",
" \n",
" \n",
" model = IsolationForest(n_estimators = num_trees, verbose = 1, contamination = contamination, \n",
" bootstrap = bootstrap, random_state = 42)\n",
" \n",
Expand Down Expand Up @@ -222,24 +224,24 @@
},
{
"cell_type": "code",
"execution_count": 63,
"execution_count": 69,
"id": "1db2ebf4",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Mango (all varieties)-Mangifera indica finished in 51.597217082977295 seconds\n",
"Jackfruit-Artocarpus heterophyllus finished in 50.52530598640442 seconds\n",
"Coconut palm-Cocos nucifera finished in 50.82300519943237 seconds\n",
"Tamarind-Tamarindus indica finished in 48.73090410232544 seconds\n",
"Indian Laburnum-Cassia fistula finished in 48.14261507987976 seconds\n",
"Amla-Phyllanthus emblica finished in 49.97675395011902 seconds\n",
"Jamun-Syzygium cumini finished in 89.29073786735535 seconds\n",
"Neem-Azadirachta indica finished in 98.57835698127747 seconds\n",
"Maulsari-Mimusops elengi finished in 46.72803974151611 seconds\n",
"Rain tree-Albizia saman finished in 46.731587171554565 seconds\n"
"Mango (all varieties)-Mangifera indica finished in 48.85904312133789 seconds\n",
"Jackfruit-Artocarpus heterophyllus finished in 47.873674154281616 seconds\n",
"Coconut palm-Cocos nucifera finished in 49.44746208190918 seconds\n",
"Tamarind-Tamarindus indica finished in 47.319135904312134 seconds\n",
"Indian Laburnum-Cassia fistula finished in 46.6449191570282 seconds\n",
"Amla-Phyllanthus emblica finished in 43.792783975601196 seconds\n",
"Jamun-Syzygium cumini finished in 44.868854999542236 seconds\n",
"Neem-Azadirachta indica finished in 45.04347014427185 seconds\n",
"Maulsari-Mimusops elengi finished in 43.54406809806824 seconds\n",
"Rain tree-Albizia saman finished in 43.959153175354004 seconds\n"
]
}
],
Expand All @@ -264,7 +266,7 @@
" for phenophase in phenophases:\n",
" ref_x = species_ref_df['Week']\n",
" ref_y = species_ref_df[phenophase]\n",
" cit_pcts = create_percentage_plots('kerala', 'Mango (all varieties)-Mangifera indica', 2023, phenophase)\n",
" cit_pcts = create_percentage_plots('kerala', species, 2023, phenophase)\n",
" cit_x = list(cit_pcts.keys())\n",
" cit_y = list(cit_pcts.values())\n",
" \n",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2961cc4

Please sign in to comment.