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
kind: ClusterConfig | |
apiVersion: eksctl.io/v1alpha5 | |
metadata: | |
name: sandbox | |
version: "1.21" | |
region: us-east-1 | |
cloudWatch: | |
clusterLogging: | |
enableTypes: | |
- api |
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
class BNRServiceBusService(ServiceBusService): | |
def __init__(self, shared_access_key_value, | |
x_ms_version='2011-06-01', | |
timeout=DEFAULT_HTTP_TIMEOUT): | |
''' | |
Initializes the service bus service for a namespace with the specified | |
authentication settings (SAS or ACS). | |
service_namespace: | |
Service bus namespace, required for all operations. If None, |
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 reactivemongo.bson.BSONObjectID | |
import scala.pickling._ | |
object Vinegar { | |
implicit def BSONObjectIdPickler(implicit stringPickler: SPickler[String], stringUnpickler: Unpickler[String], pf: PickleFormat) = | |
new SPickler[BSONObjectID] with Unpickler[BSONObjectID] { | |
val format: PickleFormat = pf | |
def pickle(id: BSONObjectID, builder: PBuilder):Unit = { |
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
model=als-model | |
model.instance-dir=/home/bearrito/oryxmigration/models | |
serving-layer.api.port=8091 | |
computation-layer.api.port=8092 |
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 com.poweredanalytics | |
// Use H2Driver to connect to an H2 database | |
import scala.slick.driver.H2Driver.simple._ | |
import scala.slick.lifted.{TableQuery, Tag} | |
import org.h2.table.Table | |
import scala.slick.direct.AnnotationMapper.column | |
import org.h2.engine.Database | |
object FirstExample extends App { |
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
In the binary-class case, we refer to this pairwise method | |
as the ROC Area SVM, or ROC-SVM. An ROC-SVM is | |
trained by solving the following optimization problem: | |
min ||w|| ^2 + L(w, P) | |
Here, P is the set of all candidate pairs in the original data set D . A candidate pair contains one xp member of the positive class and one xn member of the negative class, and is used to construct a labeled pairwise example ((xp − xn),+1) |