Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.45 KB | None | 0 0
  1. apiVersion: "serving.kubeflow.org/v1alpha2"
  2. kind: "InferenceNode"
  3. metadata:
  4. name: "my-model"
  5. spec:
  6. default:
  7. predictor:
  8. tensorflow:
  9. storageUri: "gs://mybucket/mymodel-2"
  10.  
  11. # A/B testing add-on
  12. ABTest:
  13. # which metric (the log request can log multiple) are we looking for an improvement in?
  14. metricName: "my_metric"
  15.  
  16. # what percent of users are randomly routed to this model?
  17. # default: 50
  18. trafficPercent: 10
  19.  
  20. # over the course of a single A/B test, all users _must_ consistently be routed to the same model
  21. # however, we must _not_ have correlations between user assignment to group A vs group B
  22. # example: if user 1 and user 2 are both in group A in one A/B test,
  23. # it shouldn't be guaranteed that they are in the same group in the next A/B test
  24. # thus: assuming we have 1) user ID and 2) some unique A/B test id,
  25. # we may determine what model to route a user to by hashing user ID and A/B test ID
  26. # `hash(user_id, abtest_id) / MAX_VALUE < trafficPercent / 100` (0 -> model A, 1 -> model B)
  27. # default: number of seconds after epoch (just has to be unique)
  28. seed: 93020191153
  29.  
  30. # STATISTICAL PARAMETERS
  31.  
  32. # For metric estimation (before the A/B test starts; to calculate sample size required for the A/B test)
  33. # maximumPercentError - largest possible percent error at the specified confidence value, default: 1
  34. # estimationConfidence - percent chance that our true estimation error <= maximumPercentError, default: 95
  35. maximumPercentError: 1
  36. estimationConfidence: 95
  37.  
  38. # For A/B testing
  39. # *note*: for convenience, define the output of our A/B test, C = (B's metric >= A's metric + minimumDetectableEffect)
  40. # minimumDetectableEffect - smallest detectable absolute improvement
  41. # in B's metric over A's at the specified confidence & power values
  42. # confidence - percent chance that we predict C is false given C is indeed false, default: 95
  43. # power - percent chance that we predict C is true given C is indeed true, default: 80
  44. # *note*: higher confidence/power and lower minimumDetectableEffect -> longer experiments (more samples required)
  45. minimumDetectableEffect: 0.01
  46. confidence: 95
  47. power: 80
  48.  
  49. # CONSIDERING:
  50. # timeout for sessions which do not receive a log request?
  51.  
  52. # specifying our second predictor
  53. predictor:
  54. tensorflow:
  55. storageUri: "gs://mybucket/mymodel-3"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement