Skip to content

Instantly share code, notes, and snippets.

import numpy as np
import matplotlib.pyplot as plt
from pandas import read_csv
from keras.models import Sequential
from keras.layers import LSTM, Dense
from keras.utils import to_categorical
from keras.optimizers import SGD, Adagrad, Adam
train_csv = '/home/temp/test-seqs/s2.csv'
-5 16 11 3 10 0 9 1 3 9 4 10 0 2 10 4 9 7 11 1 1 14
-5 9 0 16 14 6 2 15 10 4 15 15 13 16 7 16 12 15 17 13 13 2
-5 9 9 13 9 17 7 7 16 17 10 12 16 2 4 0 15 11 4 8 2 4
-5 10 6 5 17 4 8 10 11 11 16 2 6 4 16 0 9 7 15 7 1 8
100 7 12 3 17 0 15 11 3 6 5 9 7 0 8 15 11 4 7 4 12 10
-5 0 8 5 12 11 6 15 3 8 3 11 9 2 0 6 4 9 1 1 2 9
-5 15 0 4 10 5 5 4 12 9 5 1 14 13 6 13 13 12 8 5 12 13
-5 2 7 14 8 10 14 11 1 2 1 14 13 1 7 3 15 17 14 3 16 3
5 9 11 10 6 9 14 7 13 4 13 17 7 10 8 13 2 16 3 2 10 0
100 10 11 15 12 11 10 10 2 14 5 16 3 9 12 11 4 2 14 6 6 15
-5.0 12 16 9 1 7 4 17 11 8 3 8 10 15 2 11 1 6 2 12 6 16
-5.0 3 5 5 0 8 8 12 4 17 8 10 3 17 13 12 13 6 16 3 10 4
-5.0 13 12 0 14 2 0 14 17 12 9 2 4 7 16 3 12 8 7 13 3 14
-5.0 11 5 1 13 9 6 2 0 2 11 10 14 13 2 14 15 12 16 10 17 0
-5.0 2 12 11 0 2 2 17 0 3 12 7 3 6 10 11 10 4 7 10 15 7
-5.0 8 8 8 2 11 14 1 9 16 9 13 12 9 17 9 12 5 13 6 16 17
-5.0 1 9 2 0 15 12 16 14 5 0 14 11 3 4 14 1 5 10 15 15 0
-5.0 13 0 11 17 1 1 7 8 12 15 5 1 0 17 14 5 11 1 14 12 10
-5.0 17 15 9 13 1 1 17 8 0 0 2 2 12 12 4 9 12 10 7 16 4
-5.0 12 17 14 13 7 14 14 8 2 3 1 17 16 16 17 4 11 12 1 12 2
(ns arrois.controllers.user
(:use [noir.core :only [defpage]])
(:require [arrois.views.user :as view]
[arrois.models.user :as model]))
(defpage profile "/user/:nick" {:keys [nick]}
(view/template-profile {:nick nick}
#{ {:photo "pix/jm1.jpg" :thumb "pix/thumbs/jm1.jpg" :mainphoto 't}
{:photo "pix/jm2.jpg" :thumb "pix/thumbs/jm2.jpg"}
{:photo "pix/jm3.jpg" :thumb "pix/thumbs/jm3.jpg"}