@kyanny's blog

My thoughts, my life. Views/opinions are my own.

30 Days of ML

Kaggle: 30 Days of ML

結局、最終結果に反映されるためのスコア submit を最終日にし損ねて、たぶん順位なしでフィニッシュした。何をやっているのか。その日、柔軟体操をしながら submit しなきゃと思い出したのに、終わる頃には忘れていた。まあ submit したとしても千位以下と…

Kaggle: Pandas のコースに着手: Lesson 2

Indexing, Selecting & Assigning | Kaggle Conditional selection DataFrame に対してデータ取得を条件でフィルタリングできる。これは強力。 df.col == "Something" これは Series を取得する。DataFrame 内の各行について条件を適用した結果、ということ…

Kaggle: Pandas のコースに着手: Lesson 2

Indexing, Selecting & Assigning | Kaggle Indexing in pandas df.loc[index], df.iloc[index] でもデータにアクセスできる。df.loc() と関数(メソッド)呼び出しではないので注意。 Python の dict[array] とか array[array] のようなデータ構造は、列→行…

Kaggle: Pandas のコースに着手: Lesson 2

Indexing, Selecting & Assigning | Kaggle Native accessors DataFrame の列には df.col_name と attribute (属性)でアクセスできる。Series が取得できる。 あるいは、dict のように df['col_name'] でもアクセスできる。 両者は同一だが、dict のように…

Kaggle: Pandas のコースに着手: Lesson 1

やはりコンペでスコアが伸びないとやる気は削がれるもので、Discussion を眺めて同様の想いを打ち明ける人々と、それに対する玄人たちのアドバイスを読んで自分を慰めるなどした。 https://www.kaggle.com/c/30-days-of-ml/discussion/267237#1487797 First,…

Kaggle の 30 Days of ML という機械学習初心者向けオンラインコース、後半二週間は専用のコンペに参加するのだけど、Leaderboard に Kaggle Master や Grandmaster など、場違いでは?と思うユーザが散見されて若干やる気を削がれていたら、Discussions で…

Kaggle: [30 Days of ML] Day 15

ついに前半二週間の座学を終えて、この 30 日チャレンジ参加者限定のコンペティションに参加せよ、と。 今後は毎日のリマインドメールは送られてこない。毎日一回は Submit することを目標にしよう!と書いてあった。 最初のサブミットまでの手順(基本的な…

Kaggle: [30 Days of ML] Day 14

一日遅れ。今回の課題。 Read this tutorial (from Lesson 6 of the Intermediate ML course) Complete this exercise (from Lesson 6 of the Intermediate ML course) Read this tutorial (from Lesson 7 of the Intermediate ML course) Complete this exe…

Kaggle: [30 Days of ML] Day 13

今日の課題。 Read this tutorial (from Lesson 4 of the Intermediate ML course) Complete this exercise (from Lesson 4 of the Intermediate ML course) Read this tutorial (from Lesson 5 of the Intermediate ML course) Complete this exercise (fro…

Kaggle: [30 Days of ML] Day 12

今日の課題。だいぶ多い。 Read this tutorial (from Lesson 1 of the Intermediate ML course) Complete this exercise (from Lesson 1 of the Intermediate ML course) Read this tutorial (from Lesson 2 of the Intermediate ML course) Complete this e…

Kaggle: [30 Days of ML] Day 11

今日の課題。 Read this tutorial (from Lesson 7 of the Intro to ML course) Complete this exercise (from Lesson 7 of the Intro to ML course) もうレッスンはほぼ終わりで、これまでやった RamdomForest を使って全データからモデルを学習し、predict …

Kaggle: [30 Days of ML] Day 10

今日の課題。 Read this tutorial (from Lesson 5 of the Intro to ML course) Complete this exercise (from Lesson 5 of the Intro to ML course) Read this tutorial (from Lesson 6 of the Intro to ML course) Complete this exercise (from Lesson 6 o…

Kaggle: [30 Days of ML] Day 9

今日の課題。 Read this tutorial (from Lesson 3 of the Intro to ML course) Complete this exercise (from Lesson 3 of the Intro to ML course) Read this tutorial (from Lesson 4 of the Intro to ML course) Complete this exercise (from Lesson 4 o…

Kaggle: [30 Days of ML] Day 8

二週目。今日の課題。 Read this tutorial (from Lesson 1 of the Intro to ML course) Read this tutorial (from Lesson 2 of the Intro to ML course) Complete this exercise (from Lesson 2 of the Intro to ML course) 今週から Learn Intro to Machine…

Kaggle: [30 Days of ML] Day 7

今日の課題。 Read this tutorial (from Lesson 7 of the Python course) Complete this exercise (from Lesson 7 of the Python course) なんか感心した箇所があった気がするけど忘れてしまった。よくできてるチュートリアルだと思う。わかりやすいし、飽き…

Kaggle: [30 Days of ML] Day 6

今日の課題。 Read this tutorial (from Lesson 6 of the Python course) Complete this exercise (from Lesson 6 of the Python course) 文字列と辞書。二つの異なることについて学んだので一レッスンにしては分量がやや多かったが演習は難しくなかった。 …

Kaggle: [30 Days of ML] Day 5

今日の課題。倍増した。昨日は疲れて寝てしまって翌日にやっている。 Read this tutorial (from Lesson 4 of the Python course) Complete this exercise (from Lesson 4 of the Python course) Read this tutorial (from Lesson 5 of the Python course) Co…

Kaggle: [30 Days of ML] Day 4

今日の課題。 Read this tutorial (from Lesson 3 of the Python course) Complete this exercise (from Lesson 3 of the Python course) 最後の問題、ブラックジャック(トランプのゲーム)で次のカードを引くべきか判定する関数を実装せよ、というやつ。 D…

Kaggle: [30 Days of ML] Day 3

今日の課題 Read this tutorial (from Lesson 2 of the Python course) Complete this exercise (from Lesson 2 of the Python course) まだまだ楽勝。でも round の ndigits に負数を与えたときの挙動は具体例を見るまで分からなかった。この段階で高階関数…

Kaggle: [30 Days of ML] Day 2

今日の課題は二つ。 Read this tutorial (from Lesson 1 of the Python course) Python 少しはわかるので、読み飛ばした。 Complete this exercise (from Lesson 1 of the Python course) 完了。 四則演算で合計を 0 にする問題が解けなかった。プログラミン…

Kaggle: [30 Days of ML] Day 1 – 👋 Welcome!

だいぶ前にアカウント作るだけ作って何もしてなかった Kaggle から、30 Days of ML というチャレンジの案内がメールで来たので、継続する技術用にちょうどいいかなと思ってサインアップしてみた。 初日の課題は Getting Started with Kaggle をやるのと、こ…