Update Train.ipynb

This commit is contained in:
thijn 2025-04-01 11:22:58 +02:00
parent 7c0e367190
commit 84e0271d5c

View File

@ -1,20 +1,4 @@
{ {
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"provenance": [],
"gpuType": "T4"
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
},
"accelerator": "GPU"
},
"cells": [ "cells": [
{ {
"cell_type": "code", "cell_type": "code",
@ -26,15 +10,24 @@
"id": "oWmhhwEbL9y0", "id": "oWmhhwEbL9y0",
"outputId": "40a8a0ff-192c-4f3b-b543-29d05074280a" "outputId": "40a8a0ff-192c-4f3b-b543-29d05074280a"
}, },
"outputs": [],
"source": [ "source": [
"!pip install -r requirements.txt" "!pip install -r requirements.txt"
] ]
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [ "source": [
"!python train.py" "!gunzip SnoepAll.csv.gz\n",
], "!wget --content-disposition https://github.com/timvisee/ffsend/releases/download/v0.2.77/ffsend-v0.2.77-linux-x64-static"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": { "metadata": {
"colab": { "colab": {
"base_uri": "https://localhost:8080/" "base_uri": "https://localhost:8080/"
@ -42,7 +35,36 @@
"id": "Z4wMN1sUN1r-", "id": "Z4wMN1sUN1r-",
"outputId": "432f324d-25f2-41b5-d4f2-843ed0209ec7" "outputId": "432f324d-25f2-41b5-d4f2-843ed0209ec7"
}, },
"outputs": [],
"source": [
"!python train.py"
]
},
{
"cell_type": "code",
"execution_count": null, "execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!tar czvf out.tar.gz trained_model\n",
"!./ffsend-v0.2.77-linux-x64-static u -h https://send.hoeftnietmagwel.nl/ out.tar.gz"
]
} }
] ],
"metadata": {
"accelerator": "GPU",
"colab": {
"gpuType": "T4",
"provenance": []
},
"kernelspec": {
"display_name": "Python 3",
"name": "python3"
},
"language_info": {
"name": "python"
}
},
"nbformat": 4,
"nbformat_minor": 0
} }