This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import libraries | |
| from sklearn import datasets | |
| from catboost import CatBoostClassifier | |
| from sklearn.model_selection import GridSearchCV | |
| # load data | |
| cancer = datasets.load_breast_cancer() | |
| # target | |
| y = cancer.target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Import libraries | |
| import numpy as np | |
| from scipy.stats import randint | |
| from catboost import CatBoostClassifier | |
| from sklearn.model_selection import RandomizedSearchCV | |
| # load data | |
| cancer = datasets.load_breast_cancer() | |
| # target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os, sys | |
| from google.colab import drive | |
| drive.mount('/content/gdrive') | |
| #create a path to save the module | |
| nb_path = '/content/notebooks' | |
| os.symlink('/content/gdrive/My Drive/Colab Notebooks', nb_path) | |
| sys.path.insert(0, nb_path) |
OlderNewer