This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |