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 tensorflow as tf | |
x = tf.placeholder(tf.float32, [None, 1]) | |
y_ = tf.placeholder(tf.float32, [None, 1]) | |
b = tf.Variable(tf.zeros([1])) | |
w = tf.Variable(tf.zeros([1, 1])) | |
y = w * x + b |
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
""" | |
Implementation of kernel regression: | |
""" | |
from pylearn.old_dataset.learner import OfflineLearningAlgorithm | |
from theano import tensor as T | |
from theano.tensor.nnet import prepend_1_to_each_row | |
from theano.scalar import as_scalar | |
from common.autoname import AutoName | |
import theano |