A HTTP scorer in GoLang using GIN and PMML files
This package illustrates the use of Golang to provide scores using a random forest.
The way it works:
curl --location --request GET 'http://localhost:8085/testing' \
--header 'Content-Type: text/plain' \
--data-raw '{
"sepal_length_cm": 5.1
,"sepal_width_cm": 3.5
,"petal_length_cm":5
,"petal_width_cm": 0.2
}'
should return 0.55
You can use generate_pmml.R
to generate PMML objects. The output is stored in static
.