Skip to content

Instantly share code, notes, and snippets.

View dmfrank's full-sized avatar
🐢
I may be slow to respond.

Dmitry Frank dmfrank

🐢
I may be slow to respond.
View GitHub Profile
package com.sentrana.samba.API
import org.json4s.CustomSerializer
import org.json4s.JsonAST._
/*
* Each call to train will produce a ModelSummary object.
*/
trait ModelSummary
{ "id": "9d602ae6-131a-4986-a6fa-b592188908e4",
"modelInfo": {
"modelType": "Logistic",
"responseVariable": {
"name": "all_pre_rt_psa_responded_to_therapy",
"variableType": "Boolean",
"dataType": "Integer"
},
"variables": [{
"name": "Change_in_PSA",
(0.0,0.0)(0.0,0.002004008016032064)(0.0,0.004008016032064128)(6.978367062107466E-4,0.004008016032064128)(0.0013956734124214933,0.004008016032064128)(0.0013956734124214933,0.006012024048096192)(0.0013956734124214933,0.008016032064128256)(0.00209351011863224,0.008016032064128256)(0.00209351011863224,0.01002004008016032)(0.00209351011863224,0.012024048096192385)(0.0027913468248429866,0.012024048096192385)(0.0027913468248429866,0.014028056112224449)(0.0027913468248429866,0.01603206412825651)(0.0027913468248429866,0.018036072144288578)(0.0027913468248429866,0.02004008016032064)(0.0027913468248429866,0.022044088176352707)(0.0027913468248429866,0.02404809619238477)(0.0027913468248429866,0.026052104208416832)(0.0034891835310537334,0.026052104208416832)(0.00418702023726448,0.026052104208416832)(0.00418702023726448,0.028056112224448898)(0.004884856943475227,0.028056112224448898)(0.005582693649685973,0.028056112224448898)(0.00628053035589672,0.028056112224448898)(0.006978367062107467,0.028056112224448898)(0.006978367062
{
"id": "ce6fef55-19a5-4482-b08e-a4a02d52a858",
"modelInfo": {
"modelType": "Logistic",
"responseVariable": {
"name": "all_pre_rt_psa_responded_to_therapy",
"variableType": "Categorical",
"dataType": "Integer"
},
"variables": [
@dmfrank
dmfrank / coeff.json
Created April 28, 2017 04:49
coeffs_without_boxcox_und_normalizer
{
"id": "f259d507-ec71-4c05-94d9-dc7d5ca22149",
"modelInfo": {
"modelType": "Logistic",
"responseVariable": {
"name": "all_pre_rt_psa_responded_to_therapy",
"variableType": "Categorical",
"dataType": "Integer"
},
"variables": [
package simulations
import io.gatling.core.Predef._
import io.gatling.core.scenario.Simulation
import io.gatling.http.Predef._
import Math.roundUp
import Utils._
class LinearSimulation extends Simulation {
package com.sentrana.samba.API
import org.json4s.CustomSerializer
import org.json4s.JsonAST._
/*
* Each call to train will produce a ModelSummary object.
*/
trait ModelSummary
{
"id": "b8992aa9-91bc-4c8a-bfa9-4c14f160fcb9",
"modelInfo": {
"modelType": "Logistic",
"responseVariable": {
"name": "LogRings",
"variableType": "Categorical",
"dataType": "String"
},
"variables": [
{
"id": "368ab97d-fdc4-439d-bd3a-46abe0425d1c",
"modelInfo": {
"modelType": "Linear",
"responseVariable": {
"name": "LogRings",
"variableType": "Continuous",
"dataType": "Double"
},
"variables": [