I am trying to load a python trained classifier in a Golang server.
In python, I generally do that:
classifier = pickle.load( open("classifier1.p", "rb"))
Is there any equivalent in Golang?
It took me 3 days to train the data and I can't wait again. So I tried to convert the classifier1.p to JSON format using this code.
fpkl = pickle.load( open("whatever/classifier1.p", "rb"))
fjson = open("whatever/classifier.json", "w")
json.dump(fpkl, fjson, ensure_ascii=False, sort_keys=True, indent=4)
An error occured: Object of type 'Pipeline' is not JSON serializable
I need some advice. Is there any Golang equivalent for my first problem? If there isn't, what can I do to avoid the data training again?
Thanks in advance.