Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ChainsAddiction
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Blaß, Michael
ChainsAddiction
Commits
f367ea0e
Commit
f367ea0e
authored
6 years ago
by
Blaß, Michael
Browse files
Options
Downloads
Patches
Plain Diff
Changed name
parent
3bdfbe54
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
hmm/hmm_module.c
+7
-7
7 additions, 7 deletions
hmm/hmm_module.c
makefile
+3
-3
3 additions, 3 deletions
makefile
setup.py
+1
-1
1 addition, 1 deletion
setup.py
with
11 additions
and
11 deletions
hmm/hmm_module.c
+
7
−
7
View file @
f367ea0e
...
@@ -115,7 +115,7 @@ hmm_poisson_viterbi (PyObject *self, PyObject *args)
...
@@ -115,7 +115,7 @@ hmm_poisson_viterbi (PyObject *self, PyObject *args)
static
PyMethodDef
static
PyMethodDef
HMM
_Methods
[]
=
{
CA
_Methods
[]
=
{
{
"hmm_poisson_fit_em"
,
hmm_poisson_fit_em
,
METH_VARARGS
,
{
"hmm_poisson_fit_em"
,
hmm_poisson_fit_em
,
METH_VARARGS
,
"hmm_poisson_fit_em (x, m, _lambda, _gamma, _delta, max_iter, tol)"
},
"hmm_poisson_fit_em (x, m, _lambda, _gamma, _delta, max_iter, tol)"
},
...
@@ -132,18 +132,18 @@ HMM_Methods[] = {
...
@@ -132,18 +132,18 @@ HMM_Methods[] = {
};
};
static
struct
PyModuleDef
static
struct
PyModuleDef
hmm
_module
=
{
chains_addiction
_module
=
{
PyModuleDef_HEAD_INIT
,
PyModuleDef_HEAD_INIT
,
"
hmm
"
,
"
chains_addiction
"
,
NULL
,
NULL
,
-
1
,
-
1
,
HMM
_Methods
CA
_Methods
};
};
PyMODINIT_FUNC
PyMODINIT_FUNC
PyInit_
hmm
(
void
)
PyInit_
chains_addiction
(
void
)
{
{
import_array
();
import_array
();
return
PyModule_Create
(
&
hmm
_module
);
return
PyModule_Create
(
&
chains_addiction
_module
);
}
}
This diff is collapsed.
Click to expand it.
makefile
+
3
−
3
View file @
f367ea0e
...
@@ -3,12 +3,12 @@ TEST_INCLUDE = -Iinclude/ -Itests/src/
...
@@ -3,12 +3,12 @@ TEST_INCLUDE = -Iinclude/ -Itests/src/
CFLAGS
=
-Wall
-Wsign-compare
CFLAGS
=
-Wall
-Wsign-compare
MACROS
=
-DDebug
-Dwarn_nan
MACROS
=
-DDebug
-Dwarn_nan
hmm
.cpython-37m-darwin.so
:
hmm/*.c include/*.h
chains_addiction
.cpython-37m-darwin.so
:
hmm/*.c include/*.h
p
ython3 setup.py build_ext
--inplace
p
ip3
install
.
clean
:
clean
:
rm
-rf
build/
rm
-rf
build/
rm
hmm
.cpython-37m-darwin.so
rm
chains_addiction
.cpython-37m-darwin.so
test
:
test
:
python3 test_hmm.py
python3 test_hmm.py
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
1
View file @
f367ea0e
...
@@ -10,7 +10,7 @@ setup(
...
@@ -10,7 +10,7 @@ setup(
include_dirs
=
get_numpy_include_dirs
(),
include_dirs
=
get_numpy_include_dirs
(),
ext_modules
=
[
ext_modules
=
[
Extension
(
Extension
(
'
hmm
'
,
'
chains_addiction
'
,
sources
=
[
'
hmm/stats.c
'
,
sources
=
[
'
hmm/stats.c
'
,
'
hmm/fwbw.c
'
,
'
hmm/fwbw.c
'
,
'
hmm/em.c
'
,
'
hmm/em.c
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment