This file contains 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
Mastodon Message License | |
This license applies to all Mastodon messages posted by the message author (the "Messages"). By accessing or using the Messages, you agree to be bound by the terms of this license. | |
Prohibited Uses. You may not use the Messages for any purpose that involves indexing for full-text search of the Messages, or using them in quote replies. However, you may store the Messages by hashtag for personal or non-commercial use. | |
Attribution. You must give appropriate credit to the message author as the original creator of the Messages, but you are not required to include a specific attribution statement or link. | |
Disclaimer of Warranties. The Messages are provided "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability, fitness for a particular purpose, or non-infringement. |
This file contains 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
# brew update && brew install gcc (this includes gfortran) | |
ipython[all]>=3.2.0 | |
scikit-learn>=0.21.2 | |
matplotlib>=3.1.0 | |
pandas>= 0.24.2 |
This file contains 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 graphviz import Digraph | |
import numpy as np | |
import funcy | |
import random | |
from enum import Enum | |
# number of nodes in each layer | |
# must be odd | |
shape = [1, 3, 5, 5, 5, 5, 3, 1] | |
rows = len(shape) |
This file contains 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 matryoshka._ | |
import matryoshka.data._ | |
import matryoshka.implicits._ | |
import shapeless._ | |
type SF[A] = Boolean :+: Int :+: String :+: List[A] :+: Map[String, A] :+: CNil | |
val v0 = Coproduct[SF[Nothing]](1) |
This file contains 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 org.apache.spark.SparkContext | |
import org.apache.spark.rdd._ | |
import org.apache.spark.mllib.clustering.GaussianMixture | |
import org.apache.spark.mllib.linalg.{Vector, Vectors} | |
def sparkContext: SparkContext = { | |
import org.apache.spark.SparkConf | |
new SparkContext(new SparkConf().setMaster("local[*]").setAppName("console")) | |
} |
This file contains 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 scala.util.{Try, Success, Failure} | |
// Where this syntax scans | |
(for { | |
x <- Try("3".toInt) | |
y <- Try("4".toInt) | |
} yield { | |
x + y | |
}) match { | |
case Success(n) => println(n) |
This file contains 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
(ns ttftest.core | |
(:require | |
[taoensso.timbre :as log] | |
[clojure.java.io :as jio]) | |
(:import | |
(java.nio ByteBuffer) | |
(org.lwjgl BufferUtils) | |
(org.lwjgl.system MemoryStack) | |
(org.lwjgl.stb STBTruetype STBTTFontinfo) | |
(org.apache.commons.io IOUtils))) |
This file contains 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
package example; | |
import org.lwjgl.BufferUtils; | |
import org.lwjgl.stb.STBTruetype; | |
import org.lwjgl.stb.STBTTFontinfo; | |
import java.io.IOException; | |
import java.io.RandomAccessFile; | |
import java.nio.ByteBuffer; | |
import java.nio.IntBuffer; | |
import java.nio.channels.FileChannel; |
This file contains 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
/** | |
* A Processing implementation of izhikevich spiking neural network. | |
* http://www.izhikevich.org/publications/spikes.pdf | |
* By Aaron Santos | |
*/ | |
import java.util.Set; | |
import java.util.HashSet; | |
import org.dishevelled.processing.executor.Executor; | |
import java.util.concurrent.TimeUnit; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder