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
66e62e12
Commit
66e62e12
authored
6 years ago
by
Michal Kravcenko
Browse files
Options
Downloads
Patches
Plain Diff
ADD: added a new connection type to represent a never-changing edge
parent
6096eeb6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/NetConnection/ConnectionFunctionConstant.cpp
+25
-0
25 additions, 0 deletions
src/NetConnection/ConnectionFunctionConstant.cpp
src/NetConnection/ConnectionFunctionConstant.h
+30
-0
30 additions, 0 deletions
src/NetConnection/ConnectionFunctionConstant.h
with
55 additions
and
0 deletions
src/NetConnection/ConnectionFunctionConstant.cpp
0 → 100644
+
25
−
0
View file @
66e62e12
/**
* DESCRIPTION OF THE FILE
*
* @author Michal Kravčenko
* @date 15.3.19 -
*/
#include
"ConnectionFunctionConstant.h"
ConnectionFunctionConstant
::
ConnectionFunctionConstant
(
double
w
)
{
this
->
weight
=
w
;
}
ConnectionFunctionConstant
::~
ConnectionFunctionConstant
()
{
}
double
ConnectionFunctionConstant
::
eval
(
std
::
vector
<
double
>
&
parameter_space
)
{
return
this
->
weight
;
}
void
ConnectionFunctionConstant
::
eval_partial_derivative
(
std
::
vector
<
double
>
&
parameter_space
,
std
::
vector
<
double
>
&
weight_gradient
,
double
alpha
)
{
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/NetConnection/ConnectionFunctionConstant.h
0 → 100644
+
30
−
0
View file @
66e62e12
/**
* DESCRIPTION OF THE FILE
*
* @author Michal Kravčenko
* @date 15.3.19 -
*/
#ifndef LIB4NEURO_CONNECTIONFUNCTIONCONSTANT_H
#define LIB4NEURO_CONNECTIONFUNCTIONCONSTANT_H
#include
"../settings.h"
#include
"ConnectionFunctionGeneral.h"
class
ConnectionFunctionConstant
:
public
ConnectionFunctionGeneral
{
private:
double
weight
;
public:
LIB4NEURO_API
ConnectionFunctionConstant
(
double
w
);
LIB4NEURO_API
~
ConnectionFunctionConstant
();
LIB4NEURO_API
double
eval
(
std
::
vector
<
double
>
&
parameter_space
)
override
;
LIB4NEURO_API
void
eval_partial_derivative
(
std
::
vector
<
double
>
&
parameter_space
,
std
::
vector
<
double
>
&
weight_gradient
,
double
alpha
)
override
;
};
#endif //LIB4NEURO_CONNECTIONFUNCTIONCONSTANT_H
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