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.log4j.{Level, Logger} | |
import org.apache.spark.SparkConf | |
import org.apache.spark.sql.functions._ | |
import org.apache.spark.sql.{Dataset, SparkSession} | |
case class FooBar(city: String, postcode: String) | |
object Foo extends App { | |
Logger.getLogger("org").setLevel(Level.WARN) |
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
// Copyright (C) 2016 Georg Heiler | |
// master thesis to detect fraud of never paying customers | |
package org.apache.spark.ml.feature | |
import org.apache.log4j.{Level, Logger} | |
import org.apache.spark.SparkConf | |
import org.apache.spark.ml.param.{Param, ParamMap, Params} | |
import org.apache.spark.ml.util._ | |
import org.apache.spark.ml.{Estimator, Model, Transformer} |
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
// Copyright (C) 2016 Georg Heiler | |
// master thesis to detect fraud of never paying customers | |
package org.apache.spark.ml.feature | |
import org.apache.log4j.{ Level, Logger } | |
import org.apache.spark.SparkConf | |
import org.apache.spark.ml.param.{ Param, ParamMap, Params } | |
import org.apache.spark.ml.util._ | |
import org.apache.spark.ml.{ Estimator, Model, Transformer } |
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
// Copyright (C) 2016 Georg Heiler | |
// master thesis to detect fraud of never paying customers | |
package org.apache.spark.ml.feature | |
import org.apache.log4j.{ Level, Logger } | |
import org.apache.spark.SparkConf | |
import org.apache.spark.ml.param.{ Param, ParamMap, Params } | |
import org.apache.spark.ml.util._ | |
import org.apache.spark.ml.{ Estimator, Model, Transformer } |
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 org.apache.spark.ml.feature | |
import org.apache.log4j.{ Level, Logger } | |
import org.apache.spark.SparkConf | |
import org.apache.spark.ml.param.{ Param, ParamMap, Params } | |
import org.apache.spark.ml.util._ | |
import org.apache.spark.ml.{ Estimator, Model, Transformer } | |
import org.apache.spark.sql.functions._ | |
import org.apache.spark.sql.types._ | |
import org.apache.spark.sql.{ DataFrame, Dataset, SparkSession } |
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 ml.dmlc.xgboost4j.scala.spark.{ TrackerConf, XGBoostEstimator } | |
import org.apache.log4j.{ Level, Logger } | |
import org.apache.spark.SparkConf | |
import org.apache.spark.ml.Pipeline | |
import org.apache.spark.ml.evaluation.BinaryClassificationEvaluator | |
import org.apache.spark.ml.feature.VectorAssembler | |
import org.apache.spark.ml.tuning.{ CrossValidator, ParamGridBuilder } | |
import org.apache.spark.sql.SparkSession | |
import scala.concurrent.duration._ |
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
case class MeasureUnit(name: String, value: Double) | |
val measureSeq = Seq(MeasureUnit("metric1", 0.04), MeasureUnit("metric1", 0.09), | |
MeasureUnit("metric2", 0.64), MeasureUnit("metric2", 0.34), MeasureUnit("metric2", 0.84)) | |
type Name = String | |
// "metric1" -> Seq(0.04, 0.09), "metric2" -> Seq(0.64, 0.34, 0.84) | |
val groupedMeasures: Map[Name, Seq[Double]] = | |
measureSeq |
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
FORMAT: 1A | |
HOST: http://polls.apiblueprint.org/ | |
# test | |
Polls is a simple API allowing consumers to view polls and vote in them. | |
## Questions Collection [/questions] | |
### List All Questions [GET] |
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
library(igraph) | |
id = c("a", "b", "c", "d", "e", "f", "g") | |
name = c("Alice", "Bob", "Charlie", "David", "Esther", "Fanny", "Gaby") | |
directConnectionToTrump = c(TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE) | |
verticeData <- data.frame(id, name, directConnectionToTrump) | |
verticeData | |
src <- c("a", "b", "c", "f", "e", "e", "d", "a") | |
dst <- c("b", "c", "b", "c", "f", "d", "a", "e") | |
relationship <-c("A", "B", "B", "B", "B", "A", "A", "A") |
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
/etc/nginx # ls | |
conf.d fastcgi.conf.default fastcgi_params.default koi-win mime.types.default nginx.conf scgi_params uwsgi_params win-utf | |
fastcgi.conf fastcgi_params koi-utf mime.types modules nginx.conf.default scgi_params.default uwsgi_params.default | |
/etc/nginx # ls /etc/nginx/conf.d/ | |
default.conf sites-enabled.conf | |
/etc/nginx # cat conf.d/sites-enabled.conf | |
server { | |
listen 8080; | |
server_name application; |