$(\hat{d}{ij} - d{ij})$
$(\hat{d}{ij} - d{ij})$
$(\hat{d}{ij} - d{ij})$
$(\hat{d}{ij} - d{ij})$
| import java.util.ArrayList; | |
| /** | |
| * BilloProfiler is a low fidelity manual profiling utility. | |
| * Billo = Billig (German slang) = cheap/tacky. | |
| * <br> | |
| * You need to manually put {@link #start()} and {@link #stop()} at the piece of code you like to profile, | |
| * and sprinkle {@link #split(String)} inbetween to get timings for different sections. | |
| * Then you can simply print the profiler to get the total time and fractions of the time for the sections. | |
| * You can use the global {@link #instance} to facilitate profiling over multiple classes. |
| from typing import Callable | |
| from bokeh.server.server import Server | |
| from bokeh.document import Document | |
| from bokeh.models import Div, ColumnDataSource | |
| from bokeh.plotting import figure | |
| import pandas as pd | |
| import sklearn.datasets as toy_data | |
| def create_application(doc): |
| # Autoencoder example for dimensionalilty reduction of MNIST | |
| # Requires tensorflow and seaborn | |
| # e.g.: pip install tensorflow-cpu seaborn | |
| import tensorflow as tf | |
| import numpy as np | |
| import seaborn as sns | |
| import matplotlib.pyplot as plt | |
| /* Copyright 2021 David Haegele - Source from JPlotter */ | |
| import java.awt.Color; | |
| import java.awt.Paint; | |
| import java.awt.PaintContext; | |
| import java.awt.Rectangle; | |
| import java.awt.RenderingHints; | |
| import java.awt.Shape; | |
| import java.awt.geom.AffineTransform; | |
| import java.awt.geom.Point2D; |
| import static org.apache.batik.anim.dom.SVGDOMImplementation.SVG_NAMESPACE_URI; | |
| import java.io.ByteArrayInputStream; | |
| import java.io.ByteArrayOutputStream; | |
| import java.io.IOException; | |
| import java.io.OutputStreamWriter; | |
| import java.util.Scanner; | |
| import org.apache.batik.anim.dom.SVGDOMImplementation; | |
| import org.apache.batik.transcoder.TranscoderException; |