-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathimport.me
29 lines (22 loc) · 878 Bytes
/
import.me
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from google.colab import drive
drive.mount('/content/drive/')
root = 'drive/My Drive/'
from sklearn import metrics, datasets
from sklearn.linear_model import LinearRegression
from sklearn.model_selection import train_test_split
import matplotlib.pyplot as plt
from matplotlib.pylab import rcParams
import numpy as np
%matplotlib inline
Sklearn basic import
import numpy as np
import matplotlib.pyplot as plt
from sklearn import datasets, linear_model
from sklearn.model_selection import train_test_split
from sklearn.model_selection import cross_val_score
from sklearn.model_selection import KFold
from sklearn.metrics import mean_squared_error, r2_score, accuracy_score
from sklearn.preprocessing import LabelEncoder
from sklearn.preprocessing import MinMaxScaler, Imputer
# 填補器 : 設定缺失值補中位數
imputer = Imputer(strategy = 'median')