Skip to content

Instantly share code, notes, and snippets.

View xiangze's full-sized avatar

xiangze xiangze

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@xiangze
xiangze / papersnips_10.html
Created July 17, 2016 02:50
NIPS2015 papers topic visualization (10)
<h1> NIPS 2015</h1>
topic num=10
<link rel="stylesheet" type="text/css" href="https://cdn.rawgit.com/bmabey/pyLDAvis/files/ldavis.v1.0.0.css">
<div id="ldavis_el35251399678939125281910834435"></div>
<script type="text/javascript">
var ldavis_el35251399678939125281910834435_data = {"plot.opts": {"xlab": "PC1", "ylab": "PC2"}, "topic.order": [4, 6, 7, 10, 9, 5, 8, 2, 1, 3], "token.table": {"Topic": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 2, 3, 4, 5, 7, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 3, 5, 6, 9, 10, 1, 5, 6, 8, 10, 2, 3, 4, 5, 8, 9, 10, 1, 2, 3, 4, 5, 6, 8, 9, 10, 1, 9, 10, 1, 5, 10, 5, 6, 10, 1, 3, 4, 7, 9, 2, 5, 8, 10, 3, 4, 8, 10, 2, 4, 6, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 2, 7, 9, 3, 4, 5, 8, 3, 4, 5, 6, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 2, 4, 7, 9, 1, 2, 3, 4, 5, 6, 7, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 7, 10, 3, 4, 6, 5, 6, 9, 10, 5, 6, 9, 2, 3, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 5, 6, 8, 2, 3, 5, 6, 9, 2, 3, 5, 6, 8, 2, 3, 5, 8, 5, 6, 9, 10, 5, 6, 8, 9, 10, 3, 5, 6, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from theano import tensor as T
from theano import function, shared
import numpy
X = shared(numpy.array([0,1,2,3,4]))
Y = T.vector()
#X_update = (X, T.set_subtensor(X[2:4], Y))
X_update = (X, T.set_subtensor(X[:], Y))
#X_update = (X, Y)
f = function([Y], updates=[X_update])
# -*- coding: utf-8 -*-
from theano import function, config, shared, sandbox
import theano
import theano.tensor as T
import numpy as np
#https://groups.google.com/forum/#!topic/theano-users/hXHj5J6vi5Y
A=shared()
B = tensor.TensorVariable(A, name=A.name)