markdown.py
@environmentfilter
def markdown(env, value):
"""
Markdown filter with support for extensions.
"""
try:
import markdown as md
"""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 |
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() |
markdown.py
@environmentfilter
def markdown(env, value):
"""
Markdown filter with support for extensions.
"""
try:
import markdown as md
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 |
''' | |
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: |
This text is the section about OS X Yosemite (which also works for macOS Sierra) from https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/#mac-os-x
The last time i visited this link it was dead (403), so I cloned it here from the latest snapshot in Archive.org's Wayback Machine https://web.archive.org/web/20170523131633/https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/
This configuration worked for me, hope it helps
It is based on: https://becominghuman.ai/deep-learning-gaming-build-with-nvidia-titan-xp-and-macbook-pro-with-thunderbolt2-5ceee7167f8b
and on: https://stackoverflow.com/questions/44744737/tensorflow-mac-os-gpu-support
func makeGetCall() { | |
// Set up the URL request | |
let todoEndpoint: String = "https://jsonplaceholder.typicode.com/todos/1" | |
guard let url = URL(string: todoEndpoint) else { | |
print("Error: cannot create URL") | |
return | |
} | |
let urlRequest = URLRequest(url: url) | |
// set up the session |
import qupath.lib.scripting.QP | |
import qupath.lib.geom.Point2 | |
import qupath.lib.roi.PolygonROI | |
import qupath.lib.objects.PathAnnotationObject | |
import qupath.lib.images.servers.ImageServer | |
//Aperio Image Scope displays images in a different orientation | |
def rotated = true |
Scripts mostly taken from Pete, and also from the forums. For easy access and reference. | |
TOC | |
Alignment: Several scripts to assist in alignment as of M9. Store scripts make files using the Affine transformation while | |
TransferObjects uses the stored file in the Affine folder with the current image name to move objects into it. | |
The final result is that one set of files can be generated for the transforms, and those transforms can be accessed to move objects | |
back and forth between the images. | |
Change annotations into Cell objects.groovy - Converts annotations into PathCellObjects, which allows certian functions to work within |