memoryfolder

メモです

Kaggle API config

すごい簡単です。まずはpip install

C:\code\kaggle>pip install kaggle
...
Successfully installed kaggle

C:\code\kaggle>kaggle
Traceback (most recent call last):
...
ValueError: Error: Missing username in configuration.

Configが必要です。Kaggleのアカウントページに行って(右上の変なアイコンをクリックして”My account”をクリック)、真ん中のあたりにAPIのセクションがあるので、”Create API Token”を押してKaggle.jsonをダウンロードします。これをUses/(username)/.kaggle/に移せば

C:\code\kaggle>kaggle competitions list
ref                                            deadline             category            reward  teamCount  userHasEntered
---------------------------------------------  -------------------  ---------------  ---------  ---------  --------------
digit-recognizer                               2030-01-01 00:00:00  Getting Started  Knowledge       2564           False
titanic                                        2030-01-01 00:00:00  Getting Started  Knowledge       9728           False
house-prices-advanced-regression-techniques    2030-01-01 00:00:00  Getting Started  Knowledge       4073           False
imagenet-object-localization-challenge         2029-12-31 07:00:00  Research         Knowledge         26           False
pubg-finish-placement-prediction               2019-01-30 23:59:00  Playground            Swag         29           False
human-protein-atlas-image-classification       2019-01-10 23:59:00  Featured           $37,000         51           False
two-sigma-financial-news                       2019-01-08 23:59:00  Featured          $100,000        507           False
competitive-data-science-predict-future-sales  2019-01-01 23:59:00  Playground           Kudos       1521           False
PLAsTiCC-2018                                  2018-12-17 23:59:00  Featured           $25,000        131           False
quickdraw-doodle-recognition                   2018-12-04 23:59:00  Featured           $25,000        176           False
ga-customer-revenue-prediction                 2018-11-15 23:59:00  Featured           $45,000       1965           False
airbus-ship-detection                          2018-11-14 23:59:00  Featured           $60,000        951           False
inclusive-images-challenge                     2018-11-05 23:59:00  Research           $25,000        327           False
rsna-pneumonia-detection-challenge             2018-10-24 23:59:00  Featured           $30,000       1140           False
tgs-salt-identification-challenge              2018-10-19 23:59:00  Featured          $100,000       3025           False
new-york-city-taxi-fare-prediction             2018-09-25 23:59:00  Playground       Knowledge       1488           False
forest-cover-type-kernels-only                 2018-09-24 23:59:00  Playground       Knowledge        359           False
demand-forecasting-kernels-only                2018-09-24 23:59:00  Playground       Knowledge        462           False
whats-cooking-kernels-only                     2018-09-24 23:59:00  Playground       Knowledge        523           False
flavours-of-physics-kernels-only               2018-09-24 23:59:00  Playground       Knowledge         64           False

これでOK!

ここに全部のってます