from datetime import datetime t = datetime.now().strftime('%Y-%m-%d-%H-%M') //파일이름에 작업시간넣기 filename = '{0}-submission.csv'.format(t) //파일이름 print(filename)// 파일 이름확인 2020-09-21-18-08-submission.csv //결과 sample_submission = pd.read_csv('https://bit.ly/fc-ml-byte-submission') // 파일위치 final_prediction = final_blend //예측결과 넣기 sample_submission['SalePrice'] = final_prediction //타겟값에 예측결과 넣기 sample_su..
import catboost as cb start = time.time() # 시작 시간 지정 cb_dtrain = cb.Pool(data = train_x, label = train_y) # 학습 데이터를 Catboost 모델에 맞게 변환 cb_param = {'max_depth': 10, # 트리 깊이 'learning_rate': 0.01, # Step Size 'n_estimators': 100, # Number of trees, 트리 생성 개수 'eval_metric': 'Accuracy', # 평가 척도 'loss_function': 'MultiClass'} # 손실 함수, 목적 함수 cb_model = cb.train(pool = cb_dtrain, params = cb_param) # 학습..
import lightgbm as lgb start = time.time() # 시작 시간 지정 lgb_dtrain = lgb.Dataset(data = train_x, label = train_y) # 학습 데이터를 LightGBM 모델에 맞게 변환 lgb_param = {'max_depth': 10, # 트리 깊이 'learning_rate': 0.01, # Step Size 'n_estimators': 100, # Number of trees, 트리 생성 개수 'objective': 'multiclass', # 목적 함수 'num_class': len(set(train_y)) + 1} # 파라미터 추가, # Label must be in [0, num_class) -> num_class보다 1 커야..
import xgboost as xgb import time start = time.time() # 시작 시간 지정 xgb_dtrain = xgb.DMatrix(data = train_x, label = train_y) # 학습 데이터를 XGBoost 모델에 맞게 변환 xgb_dtest = xgb.DMatrix(data = test_x) # 평가 데이터를 XGBoost 모델에 맞게 변환 xgb_param = {'max_depth': 10, # 트리 깊이 'learning_rate': 0.01, # Step Size 'n_estimators': 100, # Number of trees, 트리 생성 개수 'objective': 'multi:softmax', # 목적 함수 'num_class': len(set..
- Total
- Today
- Yesterday
- 캐글 #머신러닝 # 딥러닝 #할수있다 #아자아자
- 주피터노트북
- 딥러닝
- Ai
- 많아
- 딥러닝 #AI #자연어처리 #머신러닝 #인공지능 #NLP #pytorch #torch #torchtext #error
- 딥러닝 #tensorflow #텐서플로우 #GPU사용 #진짜오래걸림 #너무 힘들었다
- 오류
- 바이트디그리 #바이트디그리후기 #직장인자기계발 #파이썬자격증 #웹개발자격증 #데이터분석자격증 #취업스펙 #이직준비
- python #pytorch #torchtext #딥러닝 #머신러닝 #AI #인공지능 #자연어처리 #NLP
- 인공지능
- 파이썬 # 쥬피터노트북 #아나콘다 #업데이트 #환경설정 #개발환경 #딥러닝 #머신러닝 #NLP
- # jupyter notebook
- 자연어처리
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 30 | 31 |