Skip to content

Instantly share code, notes, and snippets.

Makoto YUI myui

View GitHub Profile
View test.py
from memory_profiler import profile
@profile()
def my_func():
a = [1] * (10 ** 6)
b = [2] * (2 * 10 ** 7)
del b
return a
my_func()
View python_csr_matrix.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View hivemall_v0.6.0.md

Hivemall v0.6.0 update

Hivemall version is updated to v0.6.0-201912-r03 based on Apache Hivemall v0.6.0.

Major new features in this release includes:

  • xgboost (v0.90) support (find usage)
  • Improvements on tokenize_ja
    • Part-of-Speech (PoS) support in tokenze_ja (find usage)
    • new stoptag_excludes UDF (find usage)
View hivemall_verify.md

Followed this document for release verification.

Install required softwares

brew install gpg gpg-agent pinentry-mac
brew install maven md5sha1sum

Import GPG KEYS for verification

View max_by.md
WITH data as (
  select 'jake' as name, 18 as age
  union all
  select 'tom' as name, 64 as age
  union all
  select 'lisa' as name, 32 as age
  union all
  select 'justin' as name, 43 as age
)
@myui
myui / blogpost.md
Last active Oct 31, 2019
blogpost gender age prediction
View blogpost.md
@myui
myui / xgboost_iris.md
Created Aug 23, 2019
xgboost_iris.md
View xgboost_iris.md
View titanic_train.tsv
We can make this file beautiful and searchable if this error is corrected: No tabs found in this TSV file in line 0.
survived,pclass,name,sex,age,sibsp,parch,ticket,fare,cabin,embarked
0,3,0,0,22,1,0,0,7.25,0,0
1,3,1,1,26,0,0,1,7.925,0,0
0,3,2,0,35,0,0,2,8.05,0,0
0,3,3,0,0,0,0,3,8.4583,0,1
0,3,4,0,2,3,1,4,21.075,0,0
1,3,5,1,27,0,2,5,11.1333,0,0
1,2,6,1,14,1,0,6,30.0708,0,2
0,3,7,0,20,0,0,7,8.05,0,0
0,3,8,0,39,1,5,8,31.275,0,0
View argsort.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View calibrate_prediction.sql
WITH tmp1 as (
select
userid,
array[
probabilities[1],
probabilities[2],
probabilities[3],
probabilities[4],
probabilities[5],
probabilities[6],
You can’t perform that action at this time.