updated path and data item replaced with smaller subset
"`prepare_data` function takes path to training data and creates a fastai databunch with specified transformation, batch size, split percentage, etc."
]
},
- {
- "cell_type": "code",
- "execution_count": 2,
- "metadata": {},
- "outputs": [],
- "source": [
- "gis = GIS('home')"
- ]
- },
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
- "data_path = Path(os.path.join(filepath.split('.')[0]))"
+ "data_path = Path(os.path.join(os.path.splitext(filepath)[0]))"
]
},
{
}
],
"source": [
- "model.lr_find()"
+ "lr = model.lr_find()"
]
},
{
}
],
"source": [
- "model.fit(40,lr=3.630780547701014e-05)"
+ "model.fit(40,lr=lr)"
]
},
{
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.6.12"
+ "version": "3.7.9"
}
},
"nbformat": 4,
