Skip to content

Instantly share code, notes, and snippets.

View mottodora's full-sized avatar
😪

Motoki Abe mottodora

😪
View GitHub Profile
fn getline() -> String{
let mut ret = String::new();
std::io::stdin().read_line(&mut ret).ok();
return ret;
}
fn capslock(c: char) -> String {
match c {
c if c.is_uppercase() => c.to_string().to_lowercase(),
_ => c.to_string().to_uppercase(),
#!/usr/bin/env python
"""Chainer example: train a multi-layer perceptron on diabetes dataset
This is a minimal example to write a feed-forward net. It requires scikit-learn
to load diabetes dataset.
"""
import argparse
import numpy as np
from sklearn.datasets import load_diabetes