+ All Categories
Home > Technology > Shortening the time from analysis to deployment with ml as-a-service — Luiz Andrade and Gabriel De...

Shortening the time from analysis to deployment with ml as-a-service — Luiz Andrade and Gabriel De...

Date post: 24-Jan-2018
Category:
Upload: papisio
View: 259 times
Download: 0 times
Share this document with a friend
18
Shortening the time from analysis to deployment with ML-as-a-Service TEVEC Systems Luiz Augusto Canito Gallego de Andrade Gabriel deBodt Sivieri
Transcript
Page 1: Shortening the time from analysis to deployment with ml as-a-service — Luiz Andrade and Gabriel De Bodt Sivieri (tevec sistemas sa) @PAPIs Connect — São Paulo 2017

Shortening the time from analysis to deploymentwith ML-as-a-Service

TEVECSystems

LuizAugustoCanito Gallego deAndradeGabrieldeBodt Sivieri

Page 2: Shortening the time from analysis to deployment with ml as-a-service — Luiz Andrade and Gabriel De Bodt Sivieri (tevec sistemas sa) @PAPIs Connect — São Paulo 2017

TimeSeriesForecasting

Brazil’s GDP

Indistrial Capacity

Sales

Whatwillsalesbelikeinthecomingperiods?

Page 3: Shortening the time from analysis to deployment with ml as-a-service — Luiz Andrade and Gabriel De Bodt Sivieri (tevec sistemas sa) @PAPIs Connect — São Paulo 2017

TimeSeriesForecasting

Somestrategiestodealwiththeproblem

Page 4: Shortening the time from analysis to deployment with ml as-a-service — Luiz Andrade and Gabriel De Bodt Sivieri (tevec sistemas sa) @PAPIs Connect — São Paulo 2017

TimeSeriesForecasting

Somestrategiestodealwiththeproblem

EmbeddingstrategyFeatureengineeringstrategy

Page 5: Shortening the time from analysis to deployment with ml as-a-service — Luiz Andrade and Gabriel De Bodt Sivieri (tevec sistemas sa) @PAPIs Connect — São Paulo 2017

APICustomerStory

Thecustomerneedsinsightsabouthisdataandtobuildvalueuponitsdatabase 1

Thecustomeristhrilledwiththeresultsandeagerlywantstodeploythisnewacquiredknowledgeinhisbusinessprocesses

3

DataScienceteamscomesinthescenetocrunchdataanddeliverpowerfull modelsandinsightsaboutcustomerdata

2

Whataretherequirements?

4

CustomerSideConsultingSide

Page 6: Shortening the time from analysis to deployment with ml as-a-service — Luiz Andrade and Gabriel De Bodt Sivieri (tevec sistemas sa) @PAPIs Connect — São Paulo 2017

APICustomerStory

APIServiceLevel CloudStandards Improvedaccuracyovertime

Freshinsightstoincreasevalue

CodeStandardsandreleaseworkflow

Newvariablesfrompublicsources

Page 7: Shortening the time from analysis to deployment with ml as-a-service — Luiz Andrade and Gabriel De Bodt Sivieri (tevec sistemas sa) @PAPIs Connect — São Paulo 2017

APICustomerStory

APIServiceLevel CloudStandards Improvedaccuracyovertime

Freshinsightstoincreasevalue

CodeStandardsandreleaseworkflow

Newvariablesfrompublicsources

Some objectives/requirementsare extremely software related

Page 8: Shortening the time from analysis to deployment with ml as-a-service — Luiz Andrade and Gabriel De Bodt Sivieri (tevec sistemas sa) @PAPIs Connect — São Paulo 2017

APICustomerStory

APIServiceLevel CloudStandards Improvedaccuracyovertime

Freshinsightstoincreasevalue

CodeStandardsandreleaseworkflow

Newvariablesfrompublicsources

Others are Data Science related

Page 9: Shortening the time from analysis to deployment with ml as-a-service — Luiz Andrade and Gabriel De Bodt Sivieri (tevec sistemas sa) @PAPIs Connect — São Paulo 2017

MachinelearningasaService

FocusGroupsstrategies

FocusGroup1

Collaborationishard

Problemsaresolvedlocally

Problemoriented

Thereisnolongtermstrategy

FocusGroup2

FocusGroup4FocusGroup3

Page 10: Shortening the time from analysis to deployment with ml as-a-service — Luiz Andrade and Gabriel De Bodt Sivieri (tevec sistemas sa) @PAPIs Connect — São Paulo 2017

MachinelearningasaService

ProductOrientedStrategy

LimitedAPIproblemrange

Softwareproblemsbecomefocus

”Distancefromdata”

”Onesizefitsall”

Softwareengineering

Customerservice

DataScience UserExperience

Page 11: Shortening the time from analysis to deployment with ml as-a-service — Luiz Andrade and Gabriel De Bodt Sivieri (tevec sistemas sa) @PAPIs Connect — São Paulo 2017

Ourviewofthematter

Experimentationframework

CommonlyusedframeworksandAPIs

Model 1

Model2

Model3

Model4

Pipelines

Documentbased

database

Modelostreinados

ProductionStructure REST

ContinuousDataScience

Page 12: Shortening the time from analysis to deployment with ml as-a-service — Luiz Andrade and Gabriel De Bodt Sivieri (tevec sistemas sa) @PAPIs Connect — São Paulo 2017

What’sapipeline?

NodeNode

Node

Node

Node

Target

Bycombiningeffectivesoftwarearchitectureandstate-of-the-artMLandDStoolsweareabletoquicklytestanddeployafreshpipelinesfordifferentproblems

Page 13: Shortening the time from analysis to deployment with ml as-a-service — Luiz Andrade and Gabriel De Bodt Sivieri (tevec sistemas sa) @PAPIs Connect — São Paulo 2017

Experimenting(AgileDataScience)

MLengineeringRunAccuracyReport

DataScienceSubsamplesdatasetstofocusonanimprovement

DataScienceDesigningnewmodelsinsmall/mediumsizescale

testing

FocusonBusinessmetrics(MAPE,ROC).Secondaryuseof”math”metricssuchasRMSEorLogLoss

Accuracyisreportedbasedinproductionforecastsversusupdatedinformation

Clusteraccuracybydatasetthemeorkeystatisticalmetrics

UseofTEVEC’spipeliningframeworkforquickmodeldesign

Prototypeusingsmallscaletestinginaconsoleapplication(JupyterHub)

Page 14: Shortening the time from analysis to deployment with ml as-a-service — Luiz Andrade and Gabriel De Bodt Sivieri (tevec sistemas sa) @PAPIs Connect — São Paulo 2017

Experimenting(AgileDataScience)

MLengineeringRunAccuracyReport

DataScienceSubsamplesdatasetstofocusonanimprovement

DataScienceDesigningnewmodelsinsmall/mediumsizescale

testing

DataScience/MLEngineeringLargescaletestingon

productionframeworkusingproductiondata

MLengineeringPushpipelinestoproductionandmonitoroperations

BusinessDecisionAnalyzetheaccuracyreport

anddecidetopushtoproduction

ExperimentingstructureisanactualdocumentinTEVEC’sODMdatastructure

Experimentconnectswithpipelinesandappliesittoasequenceofdatasets

A/BTestingcomparesperformanceinsameformatasAccuracyReport

Businesshasbusiness-likeinputstodecidecommunicateexpectedresultstocustomer

Thenewpipelinewasvalidatedthroughoutthewholeexperiment.Itissafetopushtoproduction.

Page 15: Shortening the time from analysis to deployment with ml as-a-service — Luiz Andrade and Gabriel De Bodt Sivieri (tevec sistemas sa) @PAPIs Connect — São Paulo 2017

Experimenting(AgileDataScience)

MLengineeringRunAccuracyReport

DataScienceSubsamplesdatasetstofocusonanimprovement

DataScienceDesigningnewmodelsinsmall/mediumsizescale

testing

DataScience/MLEngineeringLargescaletestingon

productionframeworkusingproductiondata

MLengineeringPushpipelinestoproductionandmonitoroperations

BusinessDecisionAnalyzetheaccuracyreport

anddecidetopushtoproduction

Wetrytorepeatthecycleeveryweek

Page 16: Shortening the time from analysis to deployment with ml as-a-service — Luiz Andrade and Gabriel De Bodt Sivieri (tevec sistemas sa) @PAPIs Connect — São Paulo 2017

Experimenting(AgileDataScience)

LargeScaleexperimentingisaninherentpartofthesystem.

Page 17: Shortening the time from analysis to deployment with ml as-a-service — Luiz Andrade and Gabriel De Bodt Sivieri (tevec sistemas sa) @PAPIs Connect — São Paulo 2017

Conclusions

WeachievedprocessstabilityonceweseparatedourDataScienceteamfromtheProductionSoftwareEcosystem

ThroughacollaborationbetweenDataScienceteamandMLEngineerswewereabletodesignacontinuousexperimentationprocess

Tocareaboutstandardsandinterfaceinexperimentationstageistosavetimeindeployment.Thisalsoreducestheriskofunexpectederrorsinproduction

Pipelinestructureusesstate-of-the-artpackagesandframeworkswhileenforcinginterfacesandsoftwarearchitecture,notcodingstandards.ThissavestimetofocusonDataScience

Wearestilllearningfromthisnew”continuous”DSprocess,butsofarwehavehadexcellentresultsinteamgrowingandincrementallyimprovingoursoftware

Page 18: Shortening the time from analysis to deployment with ml as-a-service — Luiz Andrade and Gabriel De Bodt Sivieri (tevec sistemas sa) @PAPIs Connect — São Paulo 2017

Luiz Augusto Canito Gallego de Andrade+55 (11) 9 [email protected]

Gabriel Sivieri+55 (11) 9 [email protected]


Recommended