Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.learn.boosting
Commits
3187609e
Commit
3187609e
authored
Sep 03, 2014
by
Manuel Günther
Browse files
Removed unused function.
parent
b09beab8
Changes
2
Hide whitespace changes
Inline
Side-by-side
.travis.yml
View file @
3187609e
...
...
@@ -24,7 +24,7 @@ before_install:
-
if [ -n "${NUMPYSPEC}" ]; then sudo apt-get install -qq libatlas-dev libatlas-base-dev liblapack-dev gfortran; fi
-
if [ -n "${NUMPYSPEC}" ]; then pip install --upgrade pip setuptools; fi
-
if [ -n "${NUMPYSPEC}" ]; then pip install --find-links http://wheels.astropy.org/ --find-links http://wheels2.astropy.org/ --use-wheel numpy$NUMPYSPEC; fi
-
pip install --find-links http://wheels.astropy.org/ --find-links http://wheels2.astropy.org/ --use-wheel scipy$SCIPYSPEC matplotlib==1.3.0 sphinx nose==1.3.0
-
pip install --find-links http://wheels.astropy.org/ --find-links http://wheels2.astropy.org/ --use-wheel scipy$SCIPYSPEC matplotlib==1.3.0 sphinx nose==1.3.0
jinja2==2.6
-
pip install cpp-coveralls
install
:
-
python bootstrap.py
...
...
bob/learn/boosting/cpp/LossFunction.cpp
View file @
3187609e
#include <bob.learn.boosting/LossFunction.h>
#include <math.h>
static
inline
double
sqr
(
const
double
x
){
return
x
*
x
;
}
void
bob
::
learn
::
boosting
::
LossFunction
::
lossSum
(
const
blitz
::
Array
<
double
,
1
>&
alpha
,
const
blitz
::
Array
<
double
,
2
>&
targets
,
const
blitz
::
Array
<
double
,
2
>&
previous_scores
,
const
blitz
::
Array
<
double
,
2
>&
current_scores
,
blitz
::
Array
<
double
,
1
>&
loss_sum
)
const
{
// compute the scores and loss for the current alpha
scores
.
resize
(
targets
.
shape
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment