Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MeLOn - Machine Learning Models for Optimization
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AVT-SVT
public
MeLOn - Machine Learning Models for Optimization
Commits
b2c9c313
Commit
b2c9c313
authored
4 years ago
by
ln908953
Committed by
Artur Maria Schweidtmann
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Release version 0.0.4
Hotfix: Fixed Intel and gcc compability
parent
0c7085cb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
feedforward neural network/model/inc/ffNet.h
+3
-3
3 additions, 3 deletions
feedforward neural network/model/inc/ffNet.h
with
3 additions
and
3 deletions
feedforward neural network/model/inc/ffNet.h
+
3
−
3
View file @
b2c9c313
...
...
@@ -283,7 +283,7 @@ namespace melon {
// Get the number of internal network variables
template
<
typename
T
>
unsigned
int
FeedForwardNet
<
T
>::
get_number_of_full_space_variables
()
{
if
(
!
_modelLoaded
)
{
if
(
!
MelonModel
<
T
>::
_modelLoaded
)
{
throw
MelonException
(
" Error: No network loaded."
);
}
...
...
@@ -301,7 +301,7 @@ namespace melon {
// Returns the number and the names of the internal variables of the network
template
<
typename
T
>
void
FeedForwardNet
<
T
>::
get_full_space_variables
(
unsigned
int
&
variableNumber
,
std
::
vector
<
std
::
string
>&
variableNames
,
std
::
vector
<
std
::
pair
<
double
,
double
>>&
variableBounds
)
{
if
(
!
_modelLoaded
)
{
if
(
!
MelonModel
<
T
>::
_modelLoaded
)
{
throw
MelonException
(
" Error: No network loaded."
);
}
...
...
@@ -355,7 +355,7 @@ namespace melon {
// Calculates the prediction of the feed forward net for a given point
template
<
typename
T
>
std
::
vector
<
T
>
FeedForwardNet
<
T
>::
_calculate_prediction
(
const
std
::
vector
<
T
>
input
,
const
std
::
vector
<
T
>
internalVariables
,
const
bool
fullSpace
,
std
::
vector
<
T
>&
constraints
)
{
if
(
_modelLoaded
)
{
if
(
MelonModel
<
T
>::
_modelLoaded
)
{
// ---------------------------------------------------------------------------------
// 0: Initialization
// ---------------------------------------------------------------------------------
...
...
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