markdown.py
@environmentfilter
def markdown(env, value):
"""
Markdown filter with support for extensions.
"""
try:
import markdown as md
''' | |
The code is inspired from François Chollet's answer to the following quora question[1] and distributed tensorflow tutorial[2]. | |
It runs the Keras MNIST mlp example across multiple servers. | |
This sample code runs multiple processes on a single host. It can be configured | |
to run on multiple hosts simply by chaning the host names given in *ClusterSpec*. | |
Training the model: |
import tensorflow as tf | |
from keras import backend as K | |
from keras.layers import Conv2D, MaxPooling2D, Flatten | |
from keras.layers import Input, LSTM, Embedding, Dense | |
from keras.models import Model, Sequential | |
from keras.applications import InceptionV3, VGG19 | |
from keras.layers import TimeDistributed | |
import numpy as np |
markdown.py
@environmentfilter
def markdown(env, value):
"""
Markdown filter with support for extensions.
"""
try:
import markdown as md
import sys,os | |
import curses | |
def draw_menu(stdscr): | |
k = 0 | |
cursor_x = 0 | |
cursor_y = 0 | |
# Clear and refresh the screen for a blank canvas | |
stdscr.clear() |
"""Information Retrieval metrics | |
Useful Resources: | |
http://www.cs.utexas.edu/~mooney/ir-course/slides/Evaluation.ppt | |
http://www.nii.ac.jp/TechReports/05-014E.pdf | |
http://www.stanford.edu/class/cs276/handouts/EvaluationNew-handout-6-per.pdf | |
http://hal.archives-ouvertes.fr/docs/00/72/67/60/PDF/07-busa-fekete.pdf | |
Learning to Rank for Information Retrieval (Tie-Yan Liu) | |
""" | |
import numpy as np |