Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Running catboost-go on Windows #3

Open
anklaim opened this issue Nov 1, 2023 · 0 comments
Open

Issue with Running catboost-go on Windows #3

anklaim opened this issue Nov 1, 2023 · 0 comments

Comments

@anklaim
Copy link

anklaim commented Nov 1, 2023

Description:
I am encountering an issue when trying to run catboost-go on a Windows platform. It appears that the Model struct and the LoadFullModelFromFile method are undefined in the catboost-go library.

Case Scenario:

I have developed a machine learning model using CatBoost in Python.
I am trying to use this model with the catboost-go library on a Windows machine.
Error:
When attempting to execute the code, I get the following error:

# github.com/ma3axaka/catboost-go
classifier.go:7:9: undefined: Model
classifier.go:16:16: undefined: LoadFullModelFromFile

Operating System:
Windows

Steps to Reproduce:

Import the catboost-go library.
Load a CatBoost model using the LoadFullModelFromFile method.
Attempt to execute predictions.
Expected Behavior:
I expected to be able to load the model and make predictions using the catboost-go library.

Actual Behavior:
I encountered the "undefined: Model" and "undefined: LoadFullModelFromFile" errors.

Additional Information:

I am running my code on a Windows machine.
I have checked the version of the catboost-go library, and it is up to date.
Example Code:


package main

import (
    "fmt"
    "github.com/ma3axaka/catboost-go"
)

func main() {
    model, _ := catboost.LoadBinaryClassifierFromFile("model.cbm")
    numbers := make([][]float32, 0)
    categories := [][]string{{"HOLD", "BUY", "HOLD"}}
    prob, _ := model.PredictProba(numbers, 0, categories, 3)
    fmt.Println(prob)
}

Note:
I would appreciate any guidance or assistance on how to resolve this issue and successfully run catboost-go on Windows.

Thnx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant