프로그래밍/기계학습
-
MLP에서 적절한 hidden unit 개수 산정하기프로그래밍/기계학습 2021. 1. 25. 20:23
sklearn MLP 알고리즘에서 적절한 hidden unit 개수 산정하기 skearn에서 MLP classifier나 regressor를 사용할때 hiddenunit 개수를 몇 개로 시작해야 해야하는지에 대해서 좋은 대답이 있어서 기록해둔다. model_mlp = MLPClassifier(solver='lbfgs', alpha=1e-5, hidden_layer_sizes=(hiddenunit, 5), random_state=1) If the NN is a regressor, then the output layer has a single node. If the NN is a classifier, then it also has a single node unless softmax is used in whi..
-
pandas : TypeError: Only valid with DatetimeIndex, TimedeltaIndex or PeriodIndex, but got an instance of 'Index'프로그래밍/기계학습 2020. 10. 14. 21:47
pandas 에러 처리 TypeError: Only valid with DatetimeIndex, TimedeltaIndex or PeriodIndex, but got an instance of 'Index' 기계학습 실험을 하기 위해 그냥 평상시처럼 csv 파일을 아래와 같이 읽어왔다. rawdata = pd.read_csv("/data/training.csv", parse_dates =["date"], index_col ="date", sep='\t', encoding='utf-8') ... ds['vacancy'].resample(rule='M').mean().plot('bar') 필드별 통계를 보기위해 resample을 했는데 아래와 같은 에러가 발생하는 것이다?! pandas : TypeErro..
-
기계학습 추천 알고리즘 참고 리스트프로그래밍/기계학습 2020. 5. 14. 16:33
https://arxiv.org/pdf/1703.04247v1.pdf https://m.blog.naver.com/PostView.nhn?blogId=urbanbaseinc&logNo=221564766809&proxyReferer=https:%2F%2Fwww.google.com%2F https://orill.tistory.com/entry/%EB%85%BC%EB%AC%B8-%EB%A6%AC%EB%B7%B0-DeepFM-A-Factorization-Machine-based-Neural-Network-for-CTR-Prediction 1) Criteo Dataset : 4,500만 명의 유저 클릭 기록을 포함하고 있다. 13개의 continuous feature와 26개의 categorial feature가..