pms
/
ium
forked from AITech/aitech-ium
4
5
Fork 1
ium/IUM_15.Google_Cloud_Vertex_...

88 lines
50 KiB
Plaintext
Raw Permalink Normal View History

2023-06-21 13:39:01 +02:00
{
"cells": [
{
"cell_type": "markdown",
"id": "f7b2b9cc",
"metadata": {},
"source": [
2024-04-09 09:46:32 +02:00
"## Inżynieria uczenia maszynowego\n",
"### 19 czerwca 2024\n",
"# 15. Google Cloud Vertex AI"
2023-06-21 13:39:01 +02:00
]
},
{
"cell_type": "markdown",
"id": "6ee5fc51",
"metadata": {},
"source": [
"### Wprowadzenie\n",
"https://cloud.google.com/vertex-ai/docs/beginner/beginners-guide"
]
},
{
"attachments": {
"image.png": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAQYAAACyCAYAAACgGWHrAAAgAElEQVR4nO2df3SU1Z3/X09+wAQIDog4o6gMYm2oWJLCfp3sulvGL1omZfc4WdwlWdyjQbtKvu7WRFpN5HsOJvYsTuh3kWhrie6Rk9Cj34Tvls2wLWXYFjdhi5vR6hItlKGFdoaCZDCBDOTH/f4xk8lknvmVkEDQz+ucHJiZ5977ufe5z/u5z32e5301pZRCEAQhioyrHYAgCJMPEQZBEHSIMAiCoEOEQRAEHSIMgiDoEGEQBEGHCIMgCDpEGARB0CHCIAiCDhEGQRB0iDAIgqBDhEEQBB0iDIIg6BBhEARBhwiDIAg6RBgEQdAhwiAIgg4RBkEQdIgwCIKgQ4RBEAQdIgyCIOgQYRAEQYcIgyAIOkQYBEHQ8TkShgCdu5poOui/2oEIwqTncyMMgd3VLHKUUmqtoGUM2tD+goamaWgvtI9/cIIwyUhbGCIHRhp/xTtHf+RN9IFnzLdRthBMywuwGCekCEH4zJB1tQO4YsxzsP2ILNMpCOmQ9ojB+rxCqai/9prwLw4aT4z8rXmNaYLCFQThSjBhcwz+ncWhS4OHmhhxYXGyiWJNQ9OKaToJHKxF0zQKN4Z/31iov6To8eJ6aR33LTaHfrujkHUvtNAZSFxm53v1lC42o2mloTmFcDmaVsu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XYNjlxouXjj0WSleERCoYhLr7c4Ynea3VcMA7znMpQfAbyTFEfTXHjAUv/jPhz1k58RICYOjvpP7xwkj7Fb4whhD6g5CbQ3QI5nkW3P7kApOsfVLGlaROYyUYhFm5I2qB+Q53qB0XFmA/
}
},
"cell_type": "markdown",
"id": "91b3327d",
"metadata": {},
"source": [
"### Tutoriale\n",
"https://console.cloud.google.com/vertex-ai -> View Tutorials\n",
"![image.png](attachment:image.png)"
]
},
{
"attachments": {
"image.png": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAASIAAAFoCAYAAADzffa8AAAgAElEQVR4nOyde1hU1f7/XzDABMKQIIg30MQsRBPJayAi5L0w/WKaZmn5i8RbWll2jpqVZZl4j46lJy8H0xNqXjKL1DS1o4AJkgmagAKCgAwIDjLs3x8zwAAz3AQGcL2eh+fRvdde67PWXvPZa33W2u9tIkmSBJCYmIiLiwsCgUDQ2Jga2wCBQCAQjkggEBgd4YgEAoHREY5IIBAYHeGIBAKB0RGOSCAQGB0zYxvQoCRF8PZ6CP7UD92NCbnnt/LBf2J1jrgz6b2peNgCZPG/TZ8Q6/EO05+0K7mC6O0fEHZB+197F/p5jWXsUx0wS4rg7fWXGDMvmMHty9JmDf4UP+eGr6JA0BJo2Y6oKnpN4p9TPLCpeDwlltMqF8xOxnLjycF00Dnl/sI/mdrbBgousXfJfznVZS6DAUjkQPivdJ1VPr1AIKgZYmpWjiIS/jjFYyMn4dP+OLFXivQnKy4CbHhIXnJgEIO7HOfH37MayU6BoGXx4I6ILoTxwdthmn8PC+ZTfxcousaVCx50fdqOzvTjwOVr+HV1LW2k2P98wNv/AXBl8PT/o589cAfAhp5DAoledYDoR8cYozYCQbPmwXVEeqZmBZfOE5H5PyIWRWiP5HJpsCvurTT/00zNlPy6fjNKmaJ8fq0eY/j4S6w8eJZ+xQ9ywwoagvT0dAAcHR2NbEnDYJTfS1paGvv37wfgmWeewcnJyRhmVCCXS+f/ZPissiBz4s8fcDw+F/feuuk60HdoT1aeiG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"source": [
"### Tabular AutoML tutorial\n",
"![image.png](attachment:image.png)"
]
},
{
"cell_type": "markdown",
"id": "f666b76e",
"metadata": {},
"source": [
"### Najczęstsze problemy\n",
"- trenowanie z użyciem AutoML sięnie powiedzie, jeśli nie wybierzesz maszyn z GPU, np. typu G1 albo A2\n",
"- mszynę wybieramy w ostatnim kroku ustawień trenowania, po rozwinięciu dodatkowych ustawień\n",
"- jeśli na liście nie widzisz maszyn z GPU to:\n",
" - zmień region, np. w us-central1 są dostępne A2\n",
" - być może musisz zwiększyć quota na maszyny A2 w https://console.cloud.google.com/apis/api/compute.googleapis.com/quotas\n",
"- po uruchomieniu trenowania musisz trochę poczekać aż ono się rozpocznie, cierpliwości"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.16"
}
},
"nbformat": 4,
"nbformat_minor": 5
}