Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
lib4neuro
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MolDyn
lib4neuro
Commits
0606194d
Commit
0606194d
authored
5 years ago
by
Martin Beseda
Browse files
Options
Downloads
Patches
Plain Diff
[WIP] Trying to fix mini-batch variants of GD.
parent
c8183082
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/DataSet/DataSet.h
+15
-0
15 additions, 0 deletions
src/DataSet/DataSet.h
with
15 additions
and
0 deletions
src/DataSet/DataSet.h
+
15
−
0
View file @
0606194d
...
...
@@ -77,6 +77,7 @@ namespace lib4neuro {
arma
::
Mat
<
double
>*
outputs_matrix
;
unsigned
int
last_batch_vector_ind
=
0
;
public:
...
...
@@ -315,9 +316,23 @@ namespace lib4neuro {
* @param max
* @return
*/
[[
deprecated
(
"get_next_random_data_batch() should be used instead"
)]]
LIB4NEURO_API
std
::
vector
<
std
::
pair
<
std
::
vector
<
double
>
,
std
::
vector
<
double
>>>
get_random_data_batch
(
size_t
max
);
/**
* Function, that returns being&end iterators of the next random disjunct batch of DataSet.
* Randomness is given by copying the current DataSet, shuffling it once by Fisher-Yates algorithm and then
* selecting first 'max' elements, which weren't selected before.
*
* If the shuffled vector is depleted, the process repeats with copying the DataSet again and another random
* shuffle...
*
* @param max
* @return
*/
LIB4NEURO_API
std
::
vector
<
std
::
pair
<
std
::
vector
<
double
>
,
std
::
vector
<
double
>>>
get_next_data_batch
(
size_t
max
);
/**
* Adds a new output column filled with zeros
* @param n_columns Number of columns to be inserted
...
...
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