Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
c5689ea2
Commit
c5689ea2
authored
Mar 18, 2018
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed random forest feature extraction serialization.
parent
60a4af67
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
random_forest_regression.h
dlib/random_forest/random_forest_regression.h
+3
-1
random_forest_regression_abstract.h
dlib/random_forest/random_forest_regression_abstract.h
+1
-1
No files found.
dlib/random_forest/random_forest_regression.h
View file @
c5689ea2
...
@@ -83,7 +83,7 @@ namespace dlib
...
@@ -83,7 +83,7 @@ namespace dlib
serialize
(
item
.
num_feats
,
out
);
serialize
(
item
.
num_feats
,
out
);
}
}
friend
void
serialize
(
dense_feature_extractor
&
item
,
std
::
istream
&
in
)
friend
void
de
serialize
(
dense_feature_extractor
&
item
,
std
::
istream
&
in
)
{
{
check_serialized_version
(
"dense_feature_extractor"
,
in
);
check_serialized_version
(
"dense_feature_extractor"
,
in
);
deserialize
(
item
.
num_feats
,
in
);
deserialize
(
item
.
num_feats
,
in
);
...
@@ -210,6 +210,7 @@ namespace dlib
...
@@ -210,6 +210,7 @@ namespace dlib
friend
void
serialize
(
const
random_forest_regression_function
&
item
,
std
::
ostream
&
out
)
friend
void
serialize
(
const
random_forest_regression_function
&
item
,
std
::
ostream
&
out
)
{
{
serialize
(
"random_forest_regression_function"
,
out
);
serialize
(
"random_forest_regression_function"
,
out
);
serialize
(
item
.
fe
,
out
);
serialize
(
item
.
trees
,
out
);
serialize
(
item
.
trees
,
out
);
serialize
(
item
.
leaves
,
out
);
serialize
(
item
.
leaves
,
out
);
}
}
...
@@ -217,6 +218,7 @@ namespace dlib
...
@@ -217,6 +218,7 @@ namespace dlib
friend
void
deserialize
(
random_forest_regression_function
&
item
,
std
::
istream
&
in
)
friend
void
deserialize
(
random_forest_regression_function
&
item
,
std
::
istream
&
in
)
{
{
check_serialized_version
(
"random_forest_regression_function"
,
in
);
check_serialized_version
(
"random_forest_regression_function"
,
in
);
deserialize
(
item
.
fe
,
in
);
deserialize
(
item
.
trees
,
in
);
deserialize
(
item
.
trees
,
in
);
deserialize
(
item
.
leaves
,
in
);
deserialize
(
item
.
leaves
,
in
);
}
}
...
...
dlib/random_forest/random_forest_regression_abstract.h
View file @
c5689ea2
...
@@ -121,7 +121,7 @@ namespace dlib
...
@@ -121,7 +121,7 @@ namespace dlib
};
};
void
serialize
(
const
dense_feature_extractor
&
item
,
std
::
ostream
&
out
);
void
serialize
(
const
dense_feature_extractor
&
item
,
std
::
ostream
&
out
);
void
serialize
(
dense_feature_extractor
&
item
,
std
::
istream
&
in
);
void
de
serialize
(
dense_feature_extractor
&
item
,
std
::
istream
&
in
);
/*!
/*!
provides serialization support
provides serialization support
!*/
!*/
...
...
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