전체 글
-
-
-
4/26<Kaggle> 2022. 4. 29. 14:26
#4/26 kmeans = KMeans(n_clusters=15, random_state=2, n_init = 10).fit(loc_df) loc_df['label'] = kmeans.labels_ # 0,1,2...14 for label in loc_df['label'].unique(): plt.plot(loc_df['longitude'][loc_df['label'] == label], loc_df['latitude'][loc_df['label'] == label], '.', alpha = 0.3, markersize = 0.3) df['pickup_cluster'] = kmeans.predict(df[['pickup_longitude','pickup_latitude']]) df['pickup_hour..
-
4/25카테고리 없음 2022. 4. 28. 14:05
4/25 net = Architecture(class_cardinality=len(cardinal_classes), name="wavception") batcher = get_batcher(training_list, 16, le_classes) for i, (batch_x, batch_y) in enumerate(batcher): _, loss, acc, s = sess.run([net.op.op, net.losses.softmax, net.summ.accuracy, net.summ.s_tr], feed_dict={net.ph.wav_in: batch_x, net.ph.target: batch_y, net.ph.is_train: True}) 이름, 국어, 영어, 수학이라는 4개의 변수를 담을 수 있는 클..