Skip to content

Instantly share code, notes, and snippets.

@fukatani
fukatani / index.tsx
Created July 9, 2021 08:19
remote react bootstrap table example with react hooks and typescript
// inspired with https://gist.github.com/xabikos/fcd6e709f8ae0c11e33b
import { render } from "react-dom";
import { useState, useEffect } from "react";
import { BootstrapTable, TableHeaderColumn } from "react-bootstrap-table";
import _ from "lodash";
const dataTable = _.range(1, 60).map((x: number) => ({
id: x,
@fukatani
fukatani / rgf_vs_fastrgf.py
Created January 7, 2018 13:10
Performance comparision RGF VS FastRGF
import time
import numpy
from sklearn.datasets import load_boston
from sklearn.utils.validation import check_random_state
from sklearn.ensemble import RandomForestRegressor
from rgf.sklearn import FastRGFRegressor, RGFRegressor
boston = load_boston()
rng = check_random_state(42)
import time
import cupy
import numpy
cnt = 100
N = 10
shapes = ((N, N), (N, N, N, N), (N, N, N, N, N, N), (N, N, N, N, N, N, N))
@fukatani
fukatani / hyperopt_chainer.py
Last active February 25, 2019 07:08
How to hyperparameter of deep learning by hyperopt.
try:
import matplotlib
matplotlib.use('Agg')
except ImportError:
pass
import chainer
import chainer.functions as F
import chainer.links as L
from chainer import training