This repository was archived by the owner on Dec 6, 2023. It is now read-only.
File tree 7 files changed +45
-1
lines changed
7 files changed +45
-1
lines changed Original file line number Diff line number Diff line change
1
+ # encoding: utf-8
2
+ # cython: cdivision=True
3
+ # cython: boundscheck=False
4
+ # cython: wraparound=False
5
+ # cython: language_level=3
6
+ #
1
7
# Author: Mathieu Blondel
2
8
# License: BSD
3
9
Original file line number Diff line number Diff line change
1
+ # encoding: utf-8
2
+ # cython: cdivision=True
3
+ # cython: boundscheck=False
4
+ # cython: wraparound=False
5
+ # cython: language_level=3
6
+ #
7
+ # Authors: Fabian Pedregosa
8
+ # License: BSD
1
9
2
10
cimport numpy as np
3
11
from cython cimport floating
Original file line number Diff line number Diff line change 5
5
# cython: language_level=3
6
6
#
7
7
# Authors: Fabian Pedregosa
8
- #
8
+ # License: BSD
9
9
10
10
"""
11
11
These are some helper functions to compute the proximal operator of some common penalties
Original file line number Diff line number Diff line change
1
+ # encoding: utf-8
2
+ # cython: cdivision=True
3
+ # cython: boundscheck=False
4
+ # cython: wraparound=False
5
+ # cython: language_level=3
6
+ #
7
+ # Copyright 2005 Robert Kern ([email protected] )
1
8
2
9
cdef extern from " randomkit.h" :
3
10
Original file line number Diff line number Diff line change
1
+ # encoding: utf-8
2
+ # cython: cdivision=True
3
+ # cython: boundscheck=False
4
+ # cython: wraparound=False
5
+ # cython: language_level=3
6
+ #
1
7
# Copyright 2005 Robert Kern ([email protected] )
2
8
3
9
from libc cimport stdlib
Original file line number Diff line number Diff line change
1
+ # encoding: utf-8
2
+ # cython: cdivision=True
3
+ # cython: boundscheck=False
4
+ # cython: wraparound=False
5
+ # cython: language_level=3
6
+ #
7
+ # Authors: Mathieu Blondel
8
+ # Fabian Pedregosa
9
+ # Arnaud Rachez
10
+ # License: BSD
1
11
2
12
cimport numpy as np
3
13
Original file line number Diff line number Diff line change
1
+ # encoding: utf-8
2
+ # cython: cdivision=True
3
+ # cython: boundscheck=False
4
+ # cython: wraparound=False
5
+ # cython: language_level=3
6
+ #
1
7
# Author: Mathieu Blondel
8
+ # Peter Prettenhofer (loss functions)
2
9
# License: BSD
3
10
4
11
cdef class LossFunction:
You can’t perform that action at this time.
0 commit comments