Skip to content

Commit

Permalink
adding consistency to the repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon committed Jul 4, 2024
1 parent 2edba26 commit 6fefdb2
Show file tree
Hide file tree
Showing 14 changed files with 180 additions and 158 deletions.
12 changes: 11 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,17 @@
.Rhistory
.RData
.Ruserdata
Data/np_arrays/**
Output/Pred/**
*.pyc
/.quarto/

Data/img/*
!Data/img/Gafanha_Low_LowRes.tif

Data/shp/*
!Data/shp/mask/Gafanha_Low.shp
!Data/shp/mask/Gafanha_Low.cpg
!Data/shp/mask/Gafanha_Low.dbf
!Data/shp/mask/Gafanha_Low.prj
!Data/shp/mask/Gafanha_Low.qmd
!Data/shp/mask/Gafanha_Low.shx
3 changes: 3 additions & 0 deletions Data/Training/DISCOV_Invasea_V3.csv
Git LFS file not shown
3 changes: 0 additions & 3 deletions Data/shp/Gafanha_Low.cpg

This file was deleted.

3 changes: 0 additions & 3 deletions Data/shp/Gafanha_Low.dbf

This file was deleted.

3 changes: 0 additions & 3 deletions Data/shp/Gafanha_Low.prj

This file was deleted.

3 changes: 0 additions & 3 deletions Data/shp/Gafanha_Low.qmd

This file was deleted.

3 changes: 0 additions & 3 deletions Data/shp/Gafanha_Low.shp

This file was deleted.

3 changes: 0 additions & 3 deletions Data/shp/Gafanha_Low.shx

This file was deleted.

File renamed without changes.
Binary file added Models/DISCOV_InvaSea.pkl
Binary file not shown.
Binary file added Models/DISCOV_Invasea_V2.pkl
Binary file not shown.
2 changes: 1 addition & 1 deletion Scripts/Batch_prediction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
" \"Lorois_50m_MicasenseV3\",\n",
" \"NorthDike_high_multi\"] \n",
"\n",
"models = [\"DISCOV_BiCOME_reframed\", \"DiSCOV_InvaSea_V3\"]\n",
"models = [\"DISCOV_BiCOME_reframed\", \"DiSCOV_InvaSea\"]\n",
"\n",
"\n",
"batch_prediction(images, models)"
Expand Down
26 changes: 7 additions & 19 deletions Scripts/Model_Training.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,11 @@
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 1,
"metadata": {
"tags": []
},
"outputs": [
{
"ename": "ModuleNotFoundError",
"evalue": "No module named 'fastbook'",
"output_type": "error",
"traceback": [
"\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[1;31mModuleNotFoundError\u001b[0m Traceback (most recent call last)",
"Cell \u001b[1;32mIn[2], line 2\u001b[0m\n\u001b[0;32m 1\u001b[0m \u001b[38;5;66;03m#hide\u001b[39;00m\n\u001b[1;32m----> 2\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mfastbook\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;241m*\u001b[39m\n\u001b[0;32m 3\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01mfastinference\u001b[39;00m\n\u001b[0;32m 4\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mpandas\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mapi\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mtypes\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m is_string_dtype, is_numeric_dtype, is_categorical_dtype\n",
"\u001b[1;31mModuleNotFoundError\u001b[0m: No module named 'fastbook'"
]
}
],
"outputs": [],
"source": [
"#hide\n",
"from fastbook import *\n",
Expand Down Expand Up @@ -73,20 +61,20 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 3,
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"df_nn = pd.read_csv('../Data/Training/DISCOV_Invasea_V3.csv', low_memory=False,sep=\";\")\n",
"\n",
"output_name = '../models/DISCOV_InvaSea_V3.pkl'"
"output_name = '../models/DISCOV_InvaSea.pkl'"
]
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -95,7 +83,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 5,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -298,7 +286,7 @@
"[1141506 rows x 23 columns]"
]
},
"execution_count": 11,
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
Expand Down
Loading

0 comments on commit 6fefdb2

Please sign in to comment.