pub enum Option<T> {
None,
Some(T),
}
fn is_some(&self) -> bool
fn is_none(&self) -> bool
#.bashrcを読み込む | |
if [ -f ~/.bashrc ] ; then | |
. ~/.bashrc | |
fi |
pub enum Option<T> {
None,
Some(T),
}
fn is_some(&self) -> bool
fn is_none(&self) -> bool
library(forecast) | |
library(ggplot2) | |
d <- AirPassengers | |
d.arima <- forecast::auto.arima(d) | |
d.forecast <- forecast(d.arima, level = c(95), h = 50) | |
fortify.forecast <- function(forecast.data) { | |
require(dplyr) | |
forecasted <- as.data.frame(forecast.data) |
# coding: utf-8 | |
from __future__ import unicode_literals | |
import numpy as np | |
import pandas as pd | |
import pandas.io.data as web | |
import pandas.tools.plotting as plotting | |
def get_quote_yahoojp(code, start=None, end=None, interval='d'): | |
base = 'http://info.finance.yahoo.co.jp/history/?code={0}.T&{1}&{2}&tm={3}&p={4}' |
""" | |
This code is used to visualize | |
http://deeplearning.net/tutorial/mlp.html#tips-and-tricks-for-training-mlps | |
Usage: put the following on 389th line | |
title = "whatever you want" | |
plot_pca(classifier, x, train_set_x, train_set_y, index=epoch, title=title) | |
""" | |
def plot_pca(classifier, x_symbol, x_data, y_data, index=0, |
by Keith O. Geddes (Author), Stephen R. Czapor (Author), George Labahn (Author)
by David Gries (Author)