Perceptron実装(Ruby)