8000 BUG: fix segfault at import of the scikit by GaelVaroquaux · Pull Request #1268 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

BUG: fix segfault at import of the scikit #1268

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

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to f 8000 ile
Failed to load files.
Loading
Diff view
Diff view
4,061 changes: 2,406 additions & 1,655 deletions sklearn/_hmmc.c

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions sklearn/_hmmc.pyx
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import numpy as np
cimport numpy as np

# Numpy must be initialized. When using numpy from C or Cython you must
# _always_ do that, or you will have segfaults
np.import_array()

cimport cython

cdef extern from "math.h":
Expand Down
Loading
0