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
| package ziomlscoring | |
| import zio._ | |
| import ziomlscoring.SizeMyShirt.moduleExperimentFramework.ExperimentFramework | |
| import ziomlscoring.SizeMyShirt.moduleInferenceLogger.InferenceLogger | |
| import ziomlscoring.SizeMyShirt.moduleTShirtSizer.TShirtSizer | |
| import ziomlscoring.SizeMyShirt.sizeMyShirtMicroService | |
| object SizeMyShirt { | |
| case class UserId(value: Long) extends AnyVal |
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 zio.{DefaultRuntime, RIO, UIO, ZIO} | |
| import scala.collection.mutable | |
| import scala.util.Random | |
| object MapSort { | |
| val numValues = 10 | |
| val ceilingValue = 100000 |
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 tensorflow as tf | |
| # a = tf.constant([3,2], name="a", dtype=tf.float32) | |
| # b = tf.constant([3,2], shape=[2,1], name="b") | |
| # c = tf.constant([[3.0], [2.0]], name="c") | |
| a = tf.constant([3], name="a") | |
| b = tf.constant([5], name="b") | |
| c = tf.add(a,b,name="c") |
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 org.apache.spark.mllib.classification.LogisticRegressionModel | |
| import org.apache.spark.mllib.linalg.{Vectors, Vector => MLVector} | |
| import org.apache.spark.mllib.regression.LabeledPoint | |
| // Object which will provides list of scores | |
| class Prediction(val model: LogisticRegressionModel, val offers: Vector[(String,MLVector)]) extends Serializable{ | |
| /* | |
| THE PROBLEM WITH CHILL LIBRARY |