Skip to content

Instantly share code, notes, and snippets.

@mtsokol
mtsokol / FACET_PyData_Global_2022.ipynb
Created December 2, 2022 10:42
Notebook for FACET demo - PyData Global 2022
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import tensorflow as tf
from tensorflow.keras.backend import placeholder
print(tf.__version__)
print(tf.executing_eagerly())
x = placeholder(shape=(1, 1), dtype=tf.float32, name='x')
t = placeholder(shape=(1, 1), dtype=tf.float32, name='t')
W0 = tf.Variable(tf.random.normal((1,20)), dtype=tf.float32)
@mtsokol
mtsokol / KafkaInZioQueuesFibers.scala
Last active August 29, 2021 14:23
Build your own Kafka in ZIO - Queues & Fibers
import zio._
import zio.random._
import zio.console._
import zio.duration._
object Main extends App {
override def run(args: List[String]) = program.exitCode
sealed trait Diagnostic