This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.awt.Dimension; | |
import java.awt.Graphics; | |
import java.awt.event.ComponentAdapter; | |
import javax.swing.JFrame; | |
import javax.swing.SwingUtilities; | |
import org.lwjgl.opengl.GL; | |
import org.lwjgl.opengl.GL11; | |
import org.lwjgl.opengl.awt.AWTGLCanvas; |
NewerOlder