Skip to content

Instantly share code, notes, and snippets.

@benoror
Created October 3, 2016 22:07
Show Gist options
  • Save benoror/9307b900a58644eb6e2d7baebd6cee4f to your computer and use it in GitHub Desktop.
Save benoror/9307b900a58644eb6e2d7baebd6cee4f to your computer and use it in GitHub Desktop.
Briand endpoint (pseudocode)
function predict_cd(options = {}) {
if(!options.cause) {
return Error("c'mon, you need at least a cause!");
}
cause = options.cause;
// optional to increase % confidence
gender = options.gender || null;
age = options.age || null;
pet_name = options.pet_name || null;
// do your magic
diagnostic_nn.predict(cause, gender, age, pet_name, ...)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment