Skip to content

Instantly share code, notes, and snippets.

---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/opt/conda/lib/python3.5/site-packages/theano/gof/op.py in __call__(self, *inputs, **kwargs)
624 try:
--> 625 storage_map[ins] = [self._get_test_value(ins)]
626 compute_map[ins] = [True]
/opt/conda/lib/python3.5/site-packages/theano/gof/op.py in _get_test_value(cls, v)
580 detailed_err_msg = utils.get_variable_trace_string(v)
--> 581 raise AttributeError('%s has no test value %s' % (v, detailed_err_msg))
@pwl
pwl / openvpn-log
Created May 17, 2017 09:31
Logs from openvpn
[root@vps411446 ~]# docker run -v $OVPN_DATA:/etc/openvpn -p 1194:1194/udp --privileged -e DEBUG=1 kylemanna/openvpn
+ set -e
+ cd /etc/openvpn
+ USER_ARGS=("${@}")
+ ARGS=()
+ addArg --config /etc/openvpn/openvpn.conf
+ local arg=--config
+ '[' 2 -ge 1 ']'
+ local val=/etc/openvpn/openvpn.conf
+ hasArg --config
@pwl
pwl / probabilistic_pca.ipynb
Created March 3, 2017 12:07
Probabilistic PCA with ARD
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Problem:

F(t,y,dy)=dy+y

Scalar equation

  • Noniterative
@pwl
pwl / gist:5353171
Last active December 16, 2015 01:09
Zbieżność pochodnej z funkcji analitycznej i nieanalitycznej w przedostatnim punkcie siatki. Punkty oznaczają błąd bezwzględny (niebieski) i względny (fioletowy).
$MaxExtraPrecision = 1000;
der[f_, k_, rk_, h_] :=
NDSolve`FiniteDifferenceDerivative[Derivative[k], h Range[0, 100],
f /@ (h Range[0, 100]), DifferenceOrder -> rk];
abserr[f_, k_, rk_] :=
Abs[der[f, k, rk, #][[2]] -
Derivative[k][f][#]] & /@ (2^-Range[1, 30]);
relerr[f_, k_, rk_] :=
abserr[f, k, rk]/Abs@(Derivative[k][f] /@ (2^-Range[1, 30]));
graph[{f1_, f2_}, k_, rk_] :=
@pwl
pwl / Makefile
Created August 13, 2012 13:23
Lua script embedding in fortran
default: script_embed
./script_embed
script_embed: script_embed.f90 script_data.o
$(FC) -o $@ $^
script_data.o: script_data.s script.lua
gcc -c -o $@ $<
clean:
@pwl
pwl / Makefile
Created August 13, 2012 13:09
Lua script embedding in fortran
default: script_embed
./script_embed
script_embed: script_embed.f90 script_data.o
gfortran -o $@ $^
script_data.o: script_data.s script.lua
gcc -c -o $@ $<
@pwl
pwl / PKGBUILD
Created May 26, 2012 12:35
PKGBUILD for camlimages
pkgname=camlimages
pkgver=4.0.1
pkgrel=1
pkgdesc="Objective Caml image processing library"
arch=(i686 x86_64)
url="http://gallium.inria.fr/camlimages"
license=('GPL2')
depends=('libpng' 'libtiff' 'libxpm' 'libungif' 'freetype2' 'libjpeg')
makedepends=('ocaml' 'omake')
md5sums=('e2e1c7360f6a13fa1c5bbc51e7d05444')
program test_function_registry
use class_func_registry
use flu_module
use class_platonic
use platonic_from_lua_module
use flu_get_module
use class_function
use class_boundary
use boundary_box_module
use class_boundary_dirichlet
(setq require-final-newline t)
(add-hook 'before-save-hook 'delete-trailing-whitespace)