20190417 今日總結

2021-09-18 07:42:53 字數 1107 閱讀 3456

dataset=

filein=open('檔名稱.csv')

for line in filein.readlines():

linearr=line.strip().split(',')

在折線圖空白處右鍵-字型即可!

$符號用於下拉時內容不變,然後繪圖時同時選中這兩列即可

參考:

for i in range(3):

locals()['ex_'+str(i)]=i

print 'ex_'+str(i)

參考:

import xgboost as xgb

from sklearn.model_selection import gridsearchcv

from sklearn.model_selection import timeseriessplit

cv = 2

trainx= [[1], [2], [3], [4], [5]]

trainy = [1, 2, 3, 4, 5]

# these are the evaluation sets

testx = trainx

testy = trainy

paramgrid =

fit_params=

model = xgb.xgbregressor()

gridsearch = gridsearchcv(model, paramgrid, verbose=1 ,

fit_params=fit_params,

cv=timeseriessplit(n_splits=cv).get_n_splits([trainx,trainy]))

gridsearch.fit(trainx,trainy)

df.rename(columns = lambda x: x.strip('_x'))

df.rename(columns = lambda x: x.replace('_x', ''))

2019 04 17 PowerShell基本語法

列印hello world hello thedatadigger writelog hello world name thedatadigger writelog hello name 變數 這裡可以是乙個字串,可以是乙個sql語句,可以是乙個sql語句的執行結果 所有的變數加 sql speci...

今日課程總結

動感英語第八集筆記 詞彙 actor 演員 actress 女演員 star 主演員 句子 短語 pass 1,pass give pass st to sb pass sb st could you pass me that joe is tirsty,pass him a drink.2,pas...

Arduino 今日總結

char word void setup void loop 選擇串列埠監視器的波特率為9600bps,在傳送框裡填上字母a,點send傳送,下面的顯示框裡就會顯示返回的資料,如果傳送的是字母a,則顯示字串,否則無返回。配置串列埠通訊資料位 校驗位 停止位 通常我們使用serial.begin sp...