Skip to content

Instantly share code, notes, and snippets.

View alpinegizmo's full-sized avatar

David Anderson alpinegizmo

View GitHub Profile
class JPMMLEvaluationMapOperator(pmmlSource: String,
inputPreparationErrorHandlingStrategy: InputPreparationErrorHandlingStrategy,
missingValueStrategy: MissingValueStrategy,
resultExtractionStrategy: ResultExtractionStrategy)
extends RichMapFunction[Map[String, Any], Map[String, Serializable]] {
//The evaluator is transient and built in the open() function to allow proper serializability of the operator.
@transient
private var evaluator: Evaluator = null
@jwalton
jwalton / RickshawGraph.md
Last active February 18, 2025 14:00
Rickshaw Graph is a drop in replacement for Dashing's graph

Graphing Widget

The graphing widget shows graphs using the Rickshaw graphing library. The names of data fields should be (vaguely) familiar if you've used Rickshaw before.

It's recommended that you replace the /assets/javascripts/rickshaw.min.js from your dashboard with the latest from here.

Supported HTML data fields

@MLnick
MLnick / StreamingHLL.scala
Last active January 24, 2024 19:39
Spark Streaming meets Algebird's HyperLogLog Monoid
import spark.streaming.StreamingContext._
import spark.streaming.{Seconds, StreamingContext}
import spark.SparkContext._
import spark.storage.StorageLevel
import spark.streaming.examples.twitter.TwitterInputDStream
import com.twitter.algebird.HyperLogLog._
import com.twitter.algebird._
/**
* Example of using HyperLogLog monoid from Twitter's Algebird together with Spark Streaming's