ianfr / adsl-cpp Goto Github PK
View Code? Open in Web Editor NEWA Data Science Library for C++
License: BSD 2-Clause "Simplified" License
A Data Science Library for C++
License: BSD 2-Clause "Simplified" License
Writing an ARIMA model from scratch (plus an optimizer) seems to0 difficult - could just require that R is installed on the system and make a wrapper for R's auto.arima
model
It would be really good to create methods for DataList
that act in a way very similar to std::vector
such as:
Along with a larger selection of constructors - maybe even a curly brace initializer!
This would let users use DataLists
as a direct stand-in for vectors plus all the ADSL functionality.
These methods can probably just be wrappers around the DataList.vals
field's methods.
No need to reinvent the wheel for something like making plots - manually calling Gnuplot is inconvenient and the plots render a little strangely.
So, switch to use something that can be installed with vcpkg like https://github.com/lava/matplotlib-cpp or maybe https://github.com/sciplot/sciplot
Interpreted environments like R and Python's Jupyter notebooks have the advantage of storing large datasets in memory and allowing for code to be modified and re-run without having to re-load the data.
Being compiled and not interpreted, analysis with C++ requires that data be re-loaded from the disk every time a change in the rest of the code occurs, impeding development.
With something like Boost's interprocess library it could be possible to avoid re-loading data from disk in C++.
This could be accomplished by running two scripts: one for data loading, and another for analysis. The data loading script can stay running in the background, and the analysis script can just access a pointer to the shared memory of the data loading script every time it is re compiled instead of re-loading from disk.
The binaryClassifier
function in Dlib.h works quite well when the LOOP_POL
execution policy in DlibConst.h is set to std::execution::seq
(single-thread).
The whole point of having the execution policy and the for_each
loops is to effortlessly switch to parallel optimization of the classifier by changing LOOP_POL
to std::execution::par
. BUT, when I switch it over, this happens:
BEGIN PROGRAM OUTPUT
Search for C and gamma based on test accuracy:
gamma: 1e-05 C: 1 test accuracy: 44
gamma: 1e-05 C: 5 test accuracy: 44
gamma: 1e-05 C: 25 test accuracy: 44
gamma: 1e-05 C: 125 test accuracy: 44
gamma: 1e-05 C: 625 test accuracy: 52
gamma: 1e-05 C: 3125 test accuracy: 88
gamma: 1e-05 C: 15625 test accuracy: 64
gamma: 1e-05 C: 78125 test accuracy: 84
gamma: 5e-05 C: 1 test accuracy: 44
gamma: 5e-05 C: 5 test accuracy: 44
gamma: 5e-05 C: 25 test accuracy: 44
gamma: 5e-05 C: 125 test accuracy: 52
gamma: 5e-05 C: 625 test accuracy: 88
gamma: 5e-05 C: 3125 test accuracy: 64
gamma: 5e-05 C: 15625 test accuracy: 84
gamma: 5e-05 C: 78125 test accuracy: 84
gamma: 0.00025 C: 1 test accuracy: 44
gamma: 0.00025 C: 5 test accuracy: 44
gamma: 0.00025 C: 25 test accuracy: 52
gamma: 0.00025 C: 125 test accuracy: 88
gamma: 0.00025 C: 625 test accuracy: 60
gamma: 0.00025 C: 3125 test accuracy: 80
gamma: 0.00025 C: 15625 test accuracy: 80
gamma: 0.00025 C: 78125 test accuracy: 80
gamma: 0.00125 C: 1 test accuracy: 44
gamma: 0.00125 C: 5 test accuracy: 52
gamma: 0.00125 C: 25 test accuracy: 88
gamma: 0.00125 C: 125 test accuracy: 56
gamma: 0.00125 C: 625 test accuracy: 80
gamma: 0.00125 C: 3125 test accuracy: 80
gamma: 0.00125 C: 15625 test accuracy: 80
gamma: 0.00125 C: 78125 test accuracy: 80
gamma: 0.00625 C: 1 test accuracy: 52
gamma: 0.00625 C: 5 test accuracy: 76
gamma: 0.00625 C: 25 test accuracy: 48
gamma: 0.00625 C: 125 test accuracy: 64
gamma: 0.00625 C: 625 test accuracy: 64
gamma: 0.00625 C: 3125 test accuracy: 64
gamma: 0.00625 C: 15625 test accuracy: 64
gamma: 0.00625 C: 78125 test accuracy: 64
gamma: 0.03125 C: 1 test accuracy: 56
gamma: 0.03125 C: 5 test accuracy: 44
gamma: 0.03125 C: 25 test accuracy: 44
gamma: 0.03125 C: 125 test accuracy: 44
gamma: 0.03125 C: 625 test accuracy: 44
gamma: 0.03125 C: 3125 test accuracy: 44
gamma: 0.03125 C: 15625 test accuracy: 44
gamma: 0.03125 C: 78125 test accuracy: 44
gamma: 0.15625 C: 1 test accuracy: 56
gamma: 0.15625 C: 5 test accuracy: 44
gamma: 0.15625 C: 25 test accuracy: 44
gamma: 0.15625 C: 125 test accuracy: 44
gamma: 0.15625 C: 625 test accuracy: 44
gamma: 0.15625 C: 3125 test accuracy: 44
gamma: 0.15625 C: 15625 test accuracy: 44
gamma: 0.15625 C: 78125 test accuracy: 44
gamma: 0.78125 C: 1 test accuracy: 56
gamma: 0.78125 C: 5 test accuracy: 56
gamma: 0.78125 C: 25 test accuracy: 56
gamma: 0.78125 C: 125 test accuracy: 56
gamma: 0.78125 C: 625 test accuracy: 56
gamma: 0.78125 C: 3125 test accuracy: 56
gamma: 0.78125 C: 15625 test accuracy: 56
gamma: 0.78125 C: 78125 test accuracy: 56
Best accuracy before optimizing: 88 with gamma 1e-05 and C 3125
Initializing population...
Done initializing population.
Ranking...
Done ranking
Best accuracy during optimizing: 88
**************************** FATAL ERROR DETECTED ****************************
Error detected at line 1334.
Error detected in file C:\DEV\vcpkg\installed\x86-windows\include\dlib\matrix\matrix.h.
Error detected in function const double &__thiscall dlib::matrix<double,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>::operator ()(long) const.
Failing expression was 0 <= i && i < size().
const type matrix::operator(i)
You must give a valid row/column number
i: 10
size(): 10
this: 006BE0C0
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
Two fatal errors have been detected, the first was inappropriately ignored.
To prevent further fatal errors from being ignored this application will be
terminated immediately and you should go fix this buggy program.
The error message from this fatal error was:
Error detected at line 1334.
Error detected in file C:\DEV\vcpkg\installed\x86-windows\include\dlib\matrix\matrix.h.
Error detected in function const double &__thiscall dlib::matrix<double,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>::operator ()(long) const.
Failing expression was 0 <= i && i < size().
const type matrix::operator(i)
You must give a valid row/column number
i: 10
size(): 10
this: 006BE0C0
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
Two fatal errors have been detected, the first was inappropriately ignored.
Assertion failed: false, file C:\DEV\vcpkg\installed\x86-windows\include\dlib\error.h, line 275
To prevent further fatal errors from being ignored this application will be
terminated immediately and you should go fix this buggy program.
The error message from this fatal error was:
Error detected at line 1334.
Error detected in file C:\DEV\vcpkg\installed\x86-windows\include\dlib\matrix\matrix.h.
Error detected in function const double &__thiscall dlib::matrix<double,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>::operator ()(long) const.
Failing expression was 0 <= i && i < size().
const type matrix::operator(i)
You must give a valid row/column number
i: 10
size(): 10
this: 006BE0C0
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
Two fatal errors have been detected, the first was inappropriately ignored.
To prevent further fatal errors from being ignored this application will be
terminated immediately and you should go fix this buggy program.
The error message from this fatal error was:
Error detected at line 1334.
Error detected in file C:\DEV\vcpkg\installed\x86-windows\include\dlib\matrix\matrix.h.
Error detected in function const double &__thiscall dlib::matrix<double,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>::operator ()(long) const.
Failing expression was 0 <= i && i < size().
const type matrix::operator(i)
You must give a valid row/column number
i: 11
size(): 10
this: 006BE0C0
************************** FATAL ERROR DETECTED ************************** Assertion failed: false, file C:\DEV\vcpkg\installed\x86-windows\include\dlib\error.h, line 275
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
Two fatal errors have been detected, the first was inappropriately ignored.
To prevent further fatal errors from being ignored this application will be
terminated immediately and you should go fix this buggy program.
The error message from this fatal error was:
Error detected at line 1334.
Error detected in file C:\DEV\vcpkg\installed\x86-windows\include\dlib\matrix\matrix.h.
Error detected in function const double &__thiscall dlib::matrix<double,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>::operator ()(long) const.
Failing expression was 0 <= i && i < size().
const type matrix::operator(i)
You must give a valid row/column number
i: 10
size(): 10
this: 006BE0C0
************************** FATAL ERROR DETECTED ************************** Assertion failed: false, file C:\DEV\vcpkg\installed\x86-windows\include\dlib\error.h, line 275
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
Two fatal errors have been detected, the first was inappropriately ignored.
To prevent further fatal errors from being ignored this application will be
terminated immediately and you should go fix this buggy program.
The error message from this fatal error was:
Error detected at line 1334.
Error detected in file C:\DEV\vcpkg\installed\x86-windows\include\dlib\matrix\matrix.h.
Error detected in function const double &__thiscall dlib::matrix<double,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>::operator ()(long) const.
Failing expression was 0 <= i && i < size().
const type matrix::operator(i)
You must give a valid row/column number
i: 10
size(): 10
this: 006BE0C0
************************** FATAL ERROR DETECTED ************************** Assertion failed: false, file C:\DEV\vcpkg\installed\x86-windows\include\dlib\error.h, line 275
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
Two fatal errors have been detected, the first was inappropriately ignored.
To prevent further fatal errors from being ignored this application will be
terminated immediately and you should go fix this buggy program.
The error message from this fatal error was:
Error detected at line 1334.
Error detected in file C:\DEV\vcpkg\installed\x86-windows\include\dlib\matrix\matrix.h.
Error detected in function const double &__thiscall dlib::matrix<double,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>::operator ()(long) const.
Failing expression was 0 <= i && i < size().
const type matrix::operator(i)
You must give a valid row/column number
i: 10
size(): 10
this: 006BE0C0
Assertion failed: false, file C:\DEV\vcpkg\installed\x86-windows\include\dlib\error.h, line 275
************************** FATAL ERROR DETECTED ************************** Assertion failed: false, file C:\DEV\vcpkg\installed\x86-windows\include\dlib\error.h, line 275
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
Two fatal errors have been detected, the first was inappropriately ignored.
To prevent further fatal errors from being ignored this application will be
terminated immediately and you should go fix this buggy program.
The error message from this fatal error was:
Error detected at line 1334.
Error detected in file C:\DEV\vcpkg\installed\x86-windows\include\dlib\matrix\matrix.h.
Error detected in function const class dlib::matrix<double,4,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout> &__thiscall dlib::matrix<class dlib::matrix<double,4,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>::operator ()(long) const.
Failing expression was 0 <= i && i < size().
const type matrix::operator(i)
You must give a valid row/column number
i: 10
size(): 11
this: 006BE0E0
************************** FATAL ERROR DETECTED ************************** Assertion failed: false, file C:\DEV\vcpkg\installed\x86-windows\include\dlib\error.h, line 275
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
Two fatal errors have been detected, the first was inappropriately ignored.
To prevent further fatal errors from being ignored this application will be
terminated immediately and you should go fix this buggy program.
The error message from this fatal error was:
Error detected at line 1334.
Error detected in file C:\DEV\vcpkg\installed\x86-windows\include\dlib\matrix\matrix.h.
Error detected in function const class dlib::matrix<double,4,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout> &__thiscall dlib::matrix<class dlib::matrix<double,4,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>::operator ()(long) const.
Failing expression was 0 <= i && i < size().
const type matrix::operator(i)
You must give a valid row/column number
i: 10
size(): 12
this: 006BE0E0
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
Two fatal errors have been detected, the first was inappropriately ignored.
To prevent further fatal errors from being ignored this application will be
terminated immediately and you should go fix this buggy program.
The error message from this fatal error was:
Error detected at line 1334.
Error detected in file C:\DEV\vcpkg\installed\x86-windows\include\dlib\matrix\matrix.h.
Error detected in function const double &__thiscall dlib::matrix<double,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>::operator ()(long) const.
Failing expression was 0 <= i && i < size().
const type matrix::operator(i)
You must give a valid row/column number
i: 10
size(): 10
this: 006BE0C0
************************** FATAL ERROR DETECTED ************************** Assertion failed: false, file C:\DEV\vcpkg\installed\x86-windows\include\dlib\error.h, line 275
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
Two fatal errors have been detected, the first was inappropriately ignored.
To prevent further fatal errors from being ignored this application will be
terminated immediately and you should go fix this buggy program.
The error message from this fatal error was:
Error detected at line 1334.
Error detected in file C:\DEV\vcpkg\installed\x86-windows\include\dlib\matrix\matrix.h.
Error detected in function const class dlib::matrix<double,4,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout> &__thiscall dlib::matrix<class dlib::matrix<double,4,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>::operator ()(long) const.
Failing expression was 0 <= i && i < size().
const type matrix::operator(i)
You must give a valid row/column number
i: 10
size(): 11
this: 006BE0E0
Assertion failed: false, file C:\DEV\vcpkg\installed\x86-windows\include\dlib\error.h, line 275
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
Two fatal errors have been detected, the first was inappropriately ignored.
To prevent further fatal errors from being ignored this application will be
terminated immediately and you should go fix this buggy program.
The error message from this fatal error was:
Error detected at line 1334.
Error detected in file C:\DEV\vcpkg\installed\x86-windows\include\dlib\matrix\matrix.h.
Error detected in function const double &__thiscall dlib::matrix<double,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>::operator ()(long) const.
Failing expression was 0 <= i && i < size().
const type matrix::operator(i)
You must give a valid row/column number
i: 10
size(): 10
this: 006BE0C0
************************** FATAL ERROR DETECTED ************************** Assertion failed: false, file C:\DEV\vcpkg\installed\x86-windows\include\dlib\error.h, line 275
************************** FATAL ERROR DETECTED **************************
Two fatal errors have been detected, the first was inappropriately ignored.
To prevent further fatal errors from being ignored this application will be
terminated immediately and you should go fix this buggy program.
The error message from this fatal error was:
Error detected at line 1334.
Error detected in file C:\DEV\vcpkg\installed\x86-windows\include\dlib\matrix\matrix.h.
Error detected in function const double &__thiscall dlib::matrix<double,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>::operator ()(long) const.
Failing expression was 0 <= i && i < size().
const type matrix::operator(i)
You must give a valid row/column number
i: 10
size(): 10
this: 006BE0C0
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
Two fatal errors have been detected, the first was inappropriately ignored.
To prevent further fatal errors from being ignored this application will be
terminated immediately and you should go fix this buggy program.
The error message from this fatal error was:
Error detected at line 1334.
Error detected in file C:\DEV\vcpkg\installed\x86-windows\include\dlib\matrix\matrix.h.
Error detected in function const double &__thiscall dlib::matrix<double,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>::operator ()(long) const.
Failing expression was 0 <= i && i < size().
const type matrix::operator(i)
You must give a valid row/column number
i: 11
size(): 11
this: 006BE0C0
************************** FATAL ERROR DETECTED **************************
Assertion failed: false, file C:\DEV\vcpkg\installed\x86-windows\include\dlib\error.h, line 275
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
Two fatal errors have been detected, the first was inappropriately ignored.
To prevent further fatal errors from being ignored this application will be
terminated immediately and you should go fix this buggy program.
The error message from this fatal error was:
Error detected at line 1334.
Error detected in file C:\DEV\vcpkg\installed\x86-windows\include\dlib\matrix\matrix.h.
Error detected in function const double &__thiscall dlib::matrix<double,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>::operator ()(long) const.
Failing expression was 0 <= i && i < size().
const type matrix::operator(i)
You must give a valid row/column number
i: 11
size(): 10
this: 006BE0C0
Assertion failed: false, file C:\DEV\vcpkg\installed\x86-windows\include\dlib\error.h, line 275
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
Assertion failed: false, file C:\DEV\vcpkg\installed\x86-windows\include\dlib\error.h, line 275
Two fatal errors have been detected, the first was inappropriately ignored.
To prevent further fatal errors from being ignored this application will be
terminated immediately and you should go fix this buggy program.
The error message from this fatal error was:
Error detected at line 1334.
Error detected in file C:\DEV\vcpkg\installed\x86-windows\include\dlib\matrix\matrix.h.
Error detected in function const double &__thiscall dlib::matrix<double,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>::operator ()(long) const.
Failing expression was 0 <= i && i < size().
const type matrix::operator(i)
You must give a valid row/column number
i: 10
size(): 10
this: 006BE0C0
Assertion failed: false, file C:\DEV\vcpkg\installed\x86-windows\include\dlib\error.h, line 275
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
Two fatal errors have been detected, the first was inappropriately ignored.
To prevent further fatal errors from being ignored this application will be
terminated immediately and you should go fix this buggy program.
The error message from this fatal error was:
Error detected at line 1334.
Error detected in file C:\DEV\vcpkg\installed\x86-windows\include\dlib\matrix\matrix.h.
Error detected in function const double &__thiscall dlib::matrix<double,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>::operator ()(long) const.
Failing expression was 0 <= i && i < size().
const type matrix::operator(i)
You must give a valid row/column number
i: 10
size(): 10
this: 006BE0C0
Assertion failed: false, file C:\DEV\vcpkg\installed\x86-windows\include\dlib\error.h, line 275
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
Two fatal errors have been detected, the first was inappropriately ignored.
To prevent further fatal errors from being ignored this application will be
terminated immediately and you should go fix this buggy program.
The error message from this fatal error was:
Error detected at line 1334.
Error detected in file C:\DEV\vcpkg\installed\x86-windows\include\dlib\matrix\matrix.h.
Error detected in function const double &__thiscall dlib::matrix<double,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>::operator ()(long) const.
Failing expression was 0 <= i && i < size().
const type matrix::operator(i)
You must give a valid row/column number
i: 10
size(): 10
this: 006BE0C0
************************** FATAL ERROR DETECTED ************************** Assertion failed: false, file C:\DEV\vcpkg\installed\x86-windows\include\dlib\error.h, line 275
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
Two fatal errors have been detected, the first was inappropriately ignored.
To prevent further fatal errors from being ignored this application will be
terminated immediately and you should go fix this buggy program.
The error message from this fatal error was:
Error detected at line 1334.
Error detected in file C:\DEV\vcpkg\installed\x86-windows\include\dlib\matrix\matrix.h.
Error detected in function const class dlib::matrix<double,4,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout> &__thiscall dlib::matrix<class dlib::matrix<double,4,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>::operator ()(long) const.
Failing expression was 0 <= i && i < size().
const type matrix::operator(i)
You must give a valid row/column number
i: 10
size(): 11
this: 006BE0E0
************************** FATAL ERROR DETECTED ************************** Assertion failed: false, file C:\DEV\vcpkg\installed\x86-windows\include\dlib\error.h, line 275
************************** FATAL ERROR DETECTED **************************
Assertion failed: false, file C:\DEV\vcpkg\installed\x86-windows\include\dlib\error.h, line 275
************************** FATAL ERROR DETECTED **************************
Two fatal errors have been detected, the first was inappropriately ignored.
To prevent further fatal errors from being ignored this application will be
terminated immediately and you should go fix this buggy program.
The error message from this fatal error was:
Error detected at line 1334.
Error detected in file C:\DEV\vcpkg\installed\x86-windows\include\dlib\matrix\matrix.h.
Error detected in function const double &__thiscall dlib::matrix<double,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>::operator ()(long) const.
Failing expression was 0 <= i && i < size().
const type matrix::operator(i)
You must give a valid row/column number
i: 10
size(): 10
this: 006BE0C0
************************** FATAL ERROR DETECTED ************************** Assertion failed: false, file C:\DEV\vcpkg\installed\x86-windows\include\dlib\error.h, line 275
************************** FATAL ERROR DETECTED **************************
Two fatal errors have been detected, the first was inappropriately ignored.
To prevent further fatal errors from being ignored this application will be
terminated immediately and you should go fix this buggy program.
The error message from this fatal error was:
Two fatal errors have been detected, the first was inappropriately ignored.
To prevent further fatal errors from being ignored this application will be
terminated immediately and you should go fix this buggy program.
The error message from this fatal error was:
Error detected at line 1334.
Error detected in file C:\DEV\vcpkg\installed\x86-windows\include\dlib\matrix\matrix.h.
Error detected in function const double &__thiscall dlib::matrix<double,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>::operator ()(long) const.
Failing expression was 0 <= i && i < size().
const type matrix::operator(i)
You must give a valid row/column number
i: 10
size(): 10
this: 006BE0C0
Assertion failed: false, file C:\DEV\vcpkg\installed\x86-windows\include\dlib\error.h, line 275
Error detected at line 1334.
Error detected in file C:\DEV\vcpkg\installed\x86-windows\include\dlib\matrix\matrix.h.
Error detected in function const class dlib::matrix<double,4,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout> &__thiscall dlib::matrix<class dlib::matrix<double,4,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>::operator ()(long) const.
Failing expression was 0 <= i && i < size().
const type matrix::operator(i)
You must give a valid row/column number
i: 10
size(): 11
this: 006BE0E0
Assertion failed: false, file C:\DEV\vcpkg\installed\x86-windows\include\dlib\error.h, line 275
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
Two fatal errors have been detected, the first was inappropriately ignored.
To prevent further fatal errors from being ignored this application will be
terminated immediately and you should go fix this buggy program.
The error message from this fatal error was:
Error detected at line 1334.
Error detected in file C:\DEV\vcpkg\installed\x86-windows\include\dlib\matrix\matrix.h.
Error detected in function const double &__thiscall dlib::matrix<double,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>::operator ()(long) const.
Failing expression was 0 <= i && i < size().
const type matrix::operator(i)
You must give a valid row/column number
i: 11
size(): 10
this: 006BE0C0
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
Two fatal errors have been detected, the first was inappropriately ignored.
To prevent further fatal errors from being ignored this application will be
terminated immediately and you should go fix this buggy program.
The error message from this fatal error was:
Error detected at line 1334.
Error detected in file C:\DEV\vcpkg\installed\x86-windows\include\dlib\matrix\matrix.h.
Error detected in function const double &__thiscall dlib::matrix<double,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>::operator ()(long) const.
Failing expression was 0 <= i && i < size().
const type matrix::operator(i)
You must give a valid row/column number
i: 11
size(): 11
this: 006BE0C0
************************** FATAL ERROR DETECTED ************************** Assertion failed: false, file C:\DEV\vcpkg\installed\x86-windows\include\dlib\error.h, line 275
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
Two fatal errors have been detected, the first was inappropriately ignored.
To prevent further fatal errors from being ignored this application will be
terminated immediately and you should go fix this buggy program.
The error message from this fatal error was:
Error detected at line 1334.
Error detected in file C:\DEV\vcpkg\installed\x86-windows\include\dlib\matrix\matrix.h.
Error detected in function const class dlib::matrix<double,4,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout> &__thiscall dlib::matrix<class dlib::matrix<double,4,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>::operator ()(long) const.
Failing expression was 0 <= i && i < size().
const type matrix::operator(i)
You must give a valid row/column number
i: 10
size(): 11
this: 006BE0E0
************************** FATAL ERROR DETECTED **************************
Assertion failed: false, file C:\DEV\vcpkg\installed\x86-windows\include\dlib\error.h, line 275
Assertion failed: false, file C:\DEV\vcpkg\installed\x86-windows\include\dlib\error.h, line 275
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
Two fatal errors have been detected, the first was inappropriately ignored.
To prevent further fatal errors from being ignored this application will be
terminated immediately and you should go fix this buggy program.
The error message from this fatal error was:
Error detected at line 1334.
Error detected in file C:\DEV\vcpkg\installed\x86-windows\include\dlib\matrix\matrix.h.
Error detected in function const double &__thiscall dlib::matrix<double,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>::operator ()(long) const.
Failing expression was 0 <= i && i < size().
const type matrix::operator(i)
You must give a valid row/column number
i: 10
size(): 10
this: 006BE0C0
Assertion failed: false, file C:\DEV\vcpkg\installed\x86-windows\include\dlib\error.h, line 275
************************** FATAL ERROR DETECTED **************************
************************** FATAL ERROR DETECTED **************************
Two fatal errors have been detected, the first was inappropriately ignored.
To prevent further fatal errors from being ignored this application will be
terminated immediately and you should go fix this buggy program.
The error message from this fatal error was:
Two fatal errors have been detected, the first was inappropriately ignored.
To prevent further fatal errors from being ignored this application will be
terminated immediately and you should go fix this buggy program.
The error message from this fatal error was:
Error detected at line 1334.
Error detected in file C:\DEV\vcpkg\installed\x86-windows\include\dlib\matrix\matrix.h.
Error detected in function const class dlib::matrix<double,4,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout> &__thiscall dlib::matrix<class dlib::matrix<double,4,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>::operator ()(long) const.
Failing expression was 0 <= i && i < size().
const type matrix::operator(i)
You must give a valid row/column number
i: 10
size(): 11
this: 006BE0E0
Assertion failed: false, file C:\DEV\vcpkg\installed\x86-windows\include\dlib\error.h, line 275
Error detected at line 1334.
Error detected in file C:\DEV\vcpkg\installed\x86-windows\include\dlib\matrix\matrix.h.
Error detected in function const double &__thiscall dlib::matrix<double,0,1,class dlib::memory_manager_stateless_kernel_1,struct dlib::row_major_layout>::operator ()(long) const.
Failing expression was 0 <= i && i < size().
const type matrix::operator(i)
You must give a valid row/column number
i: 11
size(): 10
this: 006BE0C0
Assertion failed: false, file C:\DEV\vcpkg\installed\x86-windows\include\dlib\error.h, line 275
END PROGRAM OUTPUT
Use Gnuplot to enable the plotting of data from DataFrames with a new set of lambdas in Plot.h
Create a utility function or a DataFrame class method to load a matrix of doubles from a CSV into a DataFrame.
Don't worry about DataList (can always convert a 1-column file to a DataList with the getFirst lambda)
This project needs to be reorganized a little bit:
The program has a pretty decent design so far, but it's a little bit inconsistent and limited.
I would like the following changes:
double
limitation by using unions instead (don't need boost::variant
because string
data can be converted to/from char*
. I also don't want to use templates because having vectors of generic templated things gets really messy.std::function
and a naming convention for common operations like dl_filter
, df_filter
, and dfl_filter
for DataList
s, DataFrame
s, and DataFrameList
s respectively(Working on branch https://github.com/ianfr/adsl-cpp/tree/dlib-start)
(Mentioned in commit 2d991ef)
All of the cross-entropy accuracies should not be 1, and the predictions should not be virtually identical.
BEGIN TRUNCATED PROGRAM OUTPUT:
doing cross validation
gamma: 1e-05 C: 1 cross validation accuracy: 1 1
gamma: 1e-05 C: 5 cross validation accuracy: 1 1
gamma: 1e-05 C: 25 cross validation accuracy: 1 1
gamma: 1e-05 C: 125 cross validation accuracy: 1 1
gamma: 1e-05 C: 625 cross validation accuracy: 1 1
gamma: 1e-05 C: 3125 cross validation accuracy: 1 1
gamma: 1e-05 C: 15625 cross validation accuracy: 1 1
gamma: 1e-05 C: 78125 cross validation accuracy: 1 1
gamma: 5e-05 C: 1 cross validation accuracy: 1 1
gamma: 5e-05 C: 5 cross validation accuracy: 1 1
gamma: 5e-05 C: 25 cross validation accuracy: 1 1
gamma: 5e-05 C: 125 cross validation accuracy: 1 1
gamma: 5e-05 C: 625 cross validation accuracy: 1 1
gamma: 5e-05 C: 3125 cross validation accuracy: 1 1
gamma: 5e-05 C: 15625 cross validation accuracy: 1 1
gamma: 5e-05 C: 78125 cross validation accuracy: 1 1
gamma: 0.00025 C: 1 cross validation accuracy: 1 1
gamma: 0.00025 C: 5 cross validation accuracy: 1 1
gamma: 0.00025 C: 25 cross validation accuracy: 1 1
gamma: 0.00025 C: 125 cross validation accuracy: 1 1
gamma: 0.00025 C: 625 cross validation accuracy: 1 1
gamma: 0.00025 C: 3125 cross validation accuracy: 1 1
gamma: 0.00025 C: 15625 cross validation accuracy: 1 1
gamma: 0.00025 C: 78125 cross validation accuracy: 1 1
gamma: 0.00125 C: 1 cross validation accuracy: 1 1
gamma: 0.00125 C: 5 cross validation accuracy: 1 1
gamma: 0.00125 C: 25 cross validation accuracy: 1 1
gamma: 0.00125 C: 125 cross validation accuracy: 1 1
gamma: 0.00125 C: 625 cross validation accuracy: 1 1
gamma: 0.00125 C: 3125 cross validation accuracy: 1 1
gamma: 0.00125 C: 15625 cross validation accuracy: 1 1
gamma: 0.00125 C: 78125 cross validation accuracy: 1 1
gamma: 0.00625 C: 1 cross validation accuracy: 1 1
gamma: 0.00625 C: 5 cross validation accuracy: 1 1
gamma: 0.00625 C: 25 cross validation accuracy: 1 1
gamma: 0.00625 C: 125 cross validation accuracy: 1 1
gamma: 0.00625 C: 625 cross validation accuracy: 1 1
gamma: 0.00625 C: 3125 cross validation accuracy: 1 1
gamma: 0.00625 C: 15625 cross validation accuracy: 1 1
gamma: 0.00625 C: 78125 cross validation accuracy: 1 1
gamma: 0.03125 C: 1 cross validation accuracy: 1 1
gamma: 0.03125 C: 5 cross validation accuracy: 1 1
gamma: 0.03125 C: 25 cross validation accuracy: 1 1
gamma: 0.03125 C: 125 cross validation accuracy: 1 1
gamma: 0.03125 C: 625 cross validation accuracy: 1 1
gamma: 0.03125 C: 3125 cross validation accuracy: 1 1
gamma: 0.03125 C: 15625 cross validation accuracy: 1 1
gamma: 0.03125 C: 78125 cross validation accuracy: 1 1
gamma: 0.15625 C: 1 cross validation accuracy: 1 1
gamma: 0.15625 C: 5 cross validation accuracy: 1 1
gamma: 0.15625 C: 25 cross validation accuracy: 1 1
gamma: 0.15625 C: 125 cross validation accuracy: 1 1
gamma: 0.15625 C: 625 cross validation accuracy: 1 1
gamma: 0.15625 C: 3125 cross validation accuracy: 1 1
gamma: 0.15625 C: 15625 cross validation accuracy: 1 1
gamma: 0.15625 C: 78125 cross validation accuracy: 1 1
gamma: 0.78125 C: 1 cross validation accuracy: 1 1
gamma: 0.78125 C: 5 cross validation accuracy: 1 1
gamma: 0.78125 C: 25 cross validation accuracy: 1 1
gamma: 0.78125 C: 125 cross validation accuracy: 1 1
gamma: 0.78125 C: 625 cross validation accuracy: 1 1
gamma: 0.78125 C: 3125 cross validation accuracy: 1 1
gamma: 0.78125 C: 15625 cross validation accuracy: 1 1
gamma: 0.78125 C: 78125 cross validation accuracy: 1 1
number of support vectors in our learned_function is 18
Observed: 1 Predicted -0.0559632
Observed: -1 Predicted -0.0559632
Observed: 1 Predicted -0.0559632
Observed: -1 Predicted -0.0559632
Observed: 1 Predicted -0.0559632
Observed: 1 Predicted -0.0559632
Observed: -1 Predicted -0.0559632
Observed: 1 Predicted -0.0559632
Observed: -1 Predicted -0.0559632
Observed: -1 Predicted -0.0559632
Observed: 1 Predicted -0.0559632
Observed: -1 Predicted -0.0559632
Observed: -1 Predicted -0.0559632
Observed: -1 Predicted -0.0559632
Observed: -1 Predicted -0.0559632
Observed: 1 Predicted -0.0559632
Observed: 1 Predicted -0.0559632
Observed: 1 Predicted -0.0559632
Observed: 1 Predicted -0.0559632
Observed: -1 Predicted -0.0559632
Observed: 1 Predicted -0.0559632
Observed: -1 Predicted -0.0559632
Observed: -1 Predicted -0.0559632
Observed: -1 Predicted -0.0559632
Observed: 1 Predicted -0.0559632
Observed: 1 Predicted -0.0559632
Observed: 1 Predicted -0.0559632
Observed: 1 Predicted -0.0559632
Observed: -1 Predicted -0.0559632
Observed: -1 Predicted -0.0559632
Model accuracy: 50
END PROGRAM OUTPUT
Use the grid search to find a starting set of values for C and gamma. Then use those starting values as the input to a real optimizer.
Consider trying to use the simulated annealing functionality built-in to GSL.
It's also possible to launch a small pool of simulated annealing optimizers concurrently and then exit as soon as a desired level of accuracy is reached.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.