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

Inconsistent results #38

Open
Joselinejamy opened this issue Jun 10, 2019 · 4 comments
Open

Inconsistent results #38

Joselinejamy opened this issue Jun 10, 2019 · 4 comments

Comments

@Joselinejamy
Copy link

Joselinejamy commented Jun 10, 2019

Hello,
On running the following code, am getting different recall, precision and f1 scores on different runs over the same dataset.

crf = sklearn_crfsuite.CRF(
    algorithm='lbfgs',
    c1=0.1,
    c2=0.1,
    max_iterations=100,
    all_possible_transitions=True
)
crf.fit(X_train, y_train)

Came to know that this is expected by going through one of the issues, but is it possible to set any random seed to a constant value to get consistent results for same input ?

@severinsimmler
Copy link

+1

@severinsimmler
Copy link

This is related to #9.

@franklevasseur
Copy link

@severinsimmler, I actually think that it's not realted to #9 as both reported issues use different optimizers. The training with lbfgs optimizer does not call the dataset_shuffle function.

@liaeh
Copy link

liaeh commented Jun 29, 2021

I'm also having this problem... makes it very difficult to compare e.g. the benefit of including/excluding different features

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

4 participants