25-rasm 3.Google Driveda ishlash va fayillarni boshqarish.
Yaratilgan fayillarni topish uchun Google Drivega o‘tiladi bu sahifaga quydagi link orqali kirish mumkun https://drive.google.com/drive/my-drive
Google Drivening My Drive bo‘limida Colab Notebooks papkasiga kiriladi. (26-rasm)
26-rasm
Yuqoridagi papkaning ichida yaratilgan barcha .ipynb fayl kengaytmali fayillar saqlanadi shu jumladan First_NB.ipynb fayli ham. Google colabni Google Drive dan ham ishga tushirish mumkun buning uchun kerakle fayilning ustiga ikki marta bosish kifoya. Va tanlangan faylni tug‘ridan-tug‘ri ochish imkoniyati bo‘ladi.
27-rasm
Google Drivening o‘zida turib ham google colabda yangi fayl yaratish mumkun buning uchun quydagi ketma-ketlik bajariladi.(28-rasm)
28-rasm
Google colabning yana bir avfzallik tomoni ko‘plab kutubxonalar oldindan o‘rnatilingan bo‘ladi va doimiy ravishda kutubxonalar versiyasi yangilanib boriladi. Buni tekshirish uchun doimiy foydalaniladigan kutubxonalarni Cellda yuritib ko‘rish orqali ishlashini tekshirish mumkun.
import numpy as np
import pandas as pd
from sklearn.tree import DecisionTreeClassifier
from sklearn.ensemble import RandomForestClassifier
from sklearn.preprocessing import LabelEncoder
from sklearn.model_selection import train_test_split
from sklearn.metrics import classification_report
from sklearn.metrics import confusion_matrix
from sklearn.metrics import accuracy_score
from sklearn.metrics import recall_score
from sklearn.metrics import f1_score
from sklearn.metrics import precision_score
from sklearn import tree
from matplotlib import pyplot as plt
from sklearn.model_selection import cross_val_predict