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
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(), |
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
#!/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 |