Ideas on Machine Learning Interpretability · Lost profits. Wasted marketing. “For a one unit...

18
Ideas on Machine Learning Interpretability Patrick Hall, Wen Phan, SriSatish Ambati and the H2O.ai team

Transcript of Ideas on Machine Learning Interpretability · Lost profits. Wasted marketing. “For a one unit...

Page 1: Ideas on Machine Learning Interpretability · Lost profits. Wasted marketing. “For a one unit increase in age, the number of purchases increases by 0.8on average.”!" =0.8 "Linear

IdeasonMachineLearningInterpretability

PatrickHall,WenPhan,SriSatish AmbatiandtheH2O.ai team

Page 2: Ideas on Machine Learning Interpretability · Lost profits. Wasted marketing. “For a one unit increase in age, the number of purchases increases by 0.8on average.”!" =0.8 "Linear

BigIdeas

Page 3: Ideas on Machine Learning Interpretability · Lost profits. Wasted marketing. “For a one unit increase in age, the number of purchases increases by 0.8on average.”!" =0.8 "Linear

Learning from data …

Adaptedfrom:LearningfromData.https://work.caltech.edu/textbook.html

Page 4: Ideas on Machine Learning Interpretability · Lost profits. Wasted marketing. “For a one unit increase in age, the number of purchases increases by 0.8on average.”!" =0.8 "Linear

EXPLAINHYPOTHESIS

h ≈ g, βj g(x(i)j), g(x(i)

(-j))

(explainpredictionswithreasoncodes)

Learning from data …transparently.

Adaptedfrom:LearningfromData.https://work.caltech.edu/textbook.html

Page 5: Ideas on Machine Learning Interpretability · Lost profits. Wasted marketing. “For a one unit increase in age, the number of purchases increases by 0.8on average.”!" =0.8 "Linear

Increasingfairness,accountability,andtrustbydecreasingunwantedsociologicalbiases

Source:http://money.cnn.com/,AppleComputers

Page 6: Ideas on Machine Learning Interpretability · Lost profits. Wasted marketing. “For a one unit increase in age, the number of purchases increases by 0.8on average.”!" =0.8 "Linear

Increasingtrustbyquantifyingpredictionvariance

Source:http://www.vias.org/tmdatanaleng/

Page 7: Ideas on Machine Learning Interpretability · Lost profits. Wasted marketing. “For a one unit increase in age, the number of purchases increases by 0.8on average.”!" =0.8 "Linear

7

AframeworkforinterpretabilityComplexity of learned functions:• Linear, monotonic• Nonlinear, monotonic• Nonlinear, non-monotonic

(~ Number of parameters/VC dimension)

Enhancing trust and understanding: the mechanisms and results of an interpretable model should be both transparent AND dependable.

Understanding ~ transparency Trust ~ fairness and accountability

Scope of interpretability:Global vs. local

Application domain:Model-agnostic vs. model-specific

Page 8: Ideas on Machine Learning Interpretability · Lost profits. Wasted marketing. “For a one unit increase in age, the number of purchases increases by 0.8on average.”!" =0.8 "Linear

BigChallenges

Page 9: Ideas on Machine Learning Interpretability · Lost profits. Wasted marketing. “For a one unit increase in age, the number of purchases increases by 0.8on average.”!" =0.8 "Linear

LinearModelsStrongmodellocality

Usuallystablemodelsandexplanations

MachineLearningWeakmodellocality

Sometimesunstablemodelsandexplanations(a.k.a.TheMultiplicityofGoodModels)

Page 10: Ideas on Machine Learning Interpretability · Lost profits. Wasted marketing. “For a one unit increase in age, the number of purchases increases by 0.8on average.”!" =0.8 "Linear

Age

Numbe

rofP

urchases

Lostprofits.

Wastedmarketing.

“Foraoneunitincreaseinage,thenumberofpurchasesincreasesby0.8 onaverage.”

𝑔 𝑥 = 0.8𝑥

LinearModels

MachineLearning

Exact explanationsforapproximatemodels.

Approximate explanationsforexactmodels.

Age

“Slopebeginstodecreasehere.Acttooptimizesavings.”

“Slopebeginstoincreaseheresharply.Acttooptimizeprofits.”

Numbe

rofP

urchase

𝑔 𝑥 ≈ 𝑓(𝑥)

Page 11: Ideas on Machine Learning Interpretability · Lost profits. Wasted marketing. “For a one unit increase in age, the number of purchases increases by 0.8on average.”!" =0.8 "Linear

AFewofOurFavoriteThings

Page 12: Ideas on Machine Learning Interpretability · Lost profits. Wasted marketing. “For a one unit increase in age, the number of purchases increases by 0.8on average.”!" =0.8 "Linear

Partialdependenceplots

Source:http://statweb.stanford.edu/~tibs/ElemStatLearn/printings/ESLII_print10.pdf

HomeValue ~ MedInc + AveOccup + HouseAge + AveRooms

Page 13: Ideas on Machine Learning Interpretability · Lost profits. Wasted marketing. “For a one unit increase in age, the number of purchases increases by 0.8on average.”!" =0.8 "Linear

Surrogatemodels

Page 14: Ideas on Machine Learning Interpretability · Lost profits. Wasted marketing. “For a one unit increase in age, the number of purchases increases by 0.8on average.”!" =0.8 "Linear

Localinterpretable model-agnosticexplanations

Source:https://www.oreilly.com/learning/introduction-to-local-interpretable-model-agnostic-explanations-lime

Page 15: Ideas on Machine Learning Interpretability · Lost profits. Wasted marketing. “For a one unit increase in age, the number of purchases increases by 0.8on average.”!" =0.8 "Linear

VariableimportancemeasuresGlobalvariableimportanceindicatestheimpactofavariableonthemodelfortheentiretrainingdataset.

Localvariableimportancecanindicatetheimpactofavariableforeachdecisionamodelmakes– similartoreasoncodes.

Page 16: Ideas on Machine Learning Interpretability · Lost profits. Wasted marketing. “For a one unit increase in age, the number of purchases increases by 0.8on average.”!" =0.8 "Linear

Resources

Page 17: Ideas on Machine Learning Interpretability · Lost profits. Wasted marketing. “For a one unit increase in age, the number of purchases increases by 0.8on average.”!" =0.8 "Linear

MachineLearningInterpretabilitywithH2ODriverlessAIhttps://www.h2o.ai/wp-content/uploads/2017/09/MLI.pdf(ORcomebythebooth!!)

IdeasonInterpretingMachineLearninghttps://www.oreilly.com/ideas/ideas-on-interpreting-machine-learning

FAT/MLhttp://www.fatml.org/

Page 18: Ideas on Machine Learning Interpretability · Lost profits. Wasted marketing. “For a one unit increase in age, the number of purchases increases by 0.8on average.”!" =0.8 "Linear

Questions?