Skip to content

Instantly share code, notes, and snippets.

View inoccu's full-sized avatar

Kenichi Inoue inoccu

View GitHub Profile

Pythonによるデータ分析・機械学習プログラミングとAIのローコード開発

1.データ分析のためのPythonプログラミング

Pythonの基本構文(1)

for i in range(1, 101):
    if i % 3 == 0 and i % 5 == 0:
        print('Fizz Buzz!')
    elif i % 3 == 0:

Colaboratoryの基礎

Notebookの基礎

import this

requestsパッケージのインストール

!pip install requests

Pythonの基本構文

for i in range(1, 101):
    if i % 3 == 0 and i % 5 == 0:
        print('Fizz Buzz!')
    elif i % 3 == 0:
        print('Fizz!')
    elif i % 5 == 0:
        print('Buzz!')
    else:

Notebookの基礎

import this

Pycaretのインストール

!pip install pycaret
@inoccu
inoccu / kaggle-ml-titanic.md
Last active May 16, 2023 06:31
Kaggleで学ぶ!機械学習エンジニア入門

Kaggleで学ぶ!機械学習エンジニア入門

Pandasによるデータの可視化と前処理

(1)データの読み込みと表示

df = pd.read_csv('/kaggle/input/titanic/train.csv')
df.head()
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 25 columns, instead of 11. in line 7.
symboling,make,fuel-type,aspiration,num-of-doors,body-style,drive-wheels,engine-location,wheel-base,length,width,height,curb-weight,engine-type,num-of-cylinders,engine-size,fuel-system,bore,stork,compression-ratio,horsepower,peak-rpm,city-mpg,highway-mpg,price
3,alfa-romero,gas,std,two,convertible,rwd,front,88.6,168.8,64.1,48.8,2548,dohc,four,130,mpfi,3.47,2.68,9,111,5000,21,27,13495
3,alfa-romero,gas,std,two,convertible,rwd,front,88.6,168.8,64.1,48.8,2548,dohc,four,130,mpfi,3.47,2.68,9,111,5000,21,27,16500
1,alfa-romero,gas,std,two,hatchback,rwd,front,94.5,171.2,65.5,52.4,2823,ohcv,six,152,mpfi,2.68,3.47,9,154,5000,19,26,16500
2,audi,gas,std,four,sedan,fwd,front,99.8,176.6,66.2,54.3,2337,ohc,four,109,mpfi,3.19,3.4,10,102,5500,24,30,13950
2,audi,gas,std,four,sedan,4wd,front,99.4,176.6,66.4,54.3,2824,ohc,five,136,mpfi,3.19,3.4,8,115,5500,18,22,17450
2,audi,gas,std,two,sedan,fwd,front,99.8,177.3,66.3,53.1,2507,ohc,five,136,mpfi,3.19,3.4,8.5,110,5500,19,25,15250
1,audi,gas,std,four,sedan,fwd,front,105.8,192.7,71
@inoccu
inoccu / housing.csv
Last active July 4, 2023 04:35
housing.csv
CRIM ZN INDUS CHAS NOX RM AGE DIS RAD TAX PTRATIO B LSTAT MEDV
0.00632 18.00 2.310 0 0.5380 6.5750 65.20 4.0900 1 296.0 15.30 396.90 4.98 24.00
0.02731 0.00 7.070 0 0.4690 6.4210 78.90 4.9671 2 242.0 17.80 396.90 9.14 21.60
0.02729 0.00 7.070 0 0.4690 7.1850 61.10 4.9671 2 242.0 17.80 392.83 4.03 34.70
0.03237 0.00 2.180 0 0.4580 6.9980 45.80 6.0622 3 222.0 18.70 394.63 2.94 33.40
0.06905 0.00 2.180 0 0.4580 7.1470 54.20 6.0622 3 222.0 18.70 396.90 5.33 36.20
0.02985 0.00 2.180 0 0.4580 6.4300 58.70 6.0622 3 222.0 18.70 394.12 5.21 28.70
0.08829 12.50 7.870 0 0.5240 6.0120 66.60 5.5605 5 311.0 15.20 395.60 12.43 22.90
0.14455 12.50 7.870 0 0.5240 6.1720 96.10 5.9505 5 311.0 15.20 396.90 19.15 27.10
0.21124 12.50 7.870 0 0.5240 5.6310 100.00 6.0821 5 311.0 15.20 386.63 29.93 16.50
{"name":"ShopSiteBot","created":"2017-08-27T01:31:53.586Z","intents":[{"intent":"予約","created":"2017-08-27T01:33:08.280Z","updated":"2017-08-27T01:33:33.447Z","examples":[{"text":"予約したい","created":"2017-08-27T01:33:11.737Z","updated":"2017-08-27T01:33:11.737Z"},{"text":"予約の方法を教えて","created":"2017-08-27T01:33:25.476Z","updated":"2017-08-27T01:33:25.476Z"},{"text":"押さえて欲しい","created":"2017-08-27T01:33:33.447Z","updated":"2017-08-27T01:33:33.447Z"}],"description":null},{"intent":"所在地","created":"2017-08-27T01:33:49.210Z","updated":"2017-08-27T01:34:05.254Z","examples":[{"text":"お店はどこにありますか","created":"2017-08-27T01:33:52.925Z","updated":"2017-08-27T01:33:52.925Z"},{"text":"どこにありますか","created":"2017-08-27T01:34:00.547Z","updated":"2017-08-27T01:34:00.547Z"},{"text":"どうやって行けば良いですか","created":"2017-08-27T01:34:05.254Z","updated":"2017-08-27T01:34:05.254Z"}],"description":null},{"intent":"営業時間","created":"2017-08-27T01:32:08.694Z","updated":"2017-08-27T01:32:37.731Z","examples":[{"text":"何時から開いてますか","created":"2017-
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@inoccu
inoccu / meta.rb
Created July 10, 2015 00:06
Vagrant 1.7.2 on VirtualBox 5.0 (Windows)
require "forwardable"
require "log4r"
require "vagrant/util/retryable"
require File.expand_path("../base", __FILE__)
module VagrantPlugins
module ProviderVirtualBox