Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
YoshikoWrapper
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Philipp Spohr
YoshikoWrapper
Commits
3cfe5eaf
Commit
3cfe5eaf
authored
7 years ago
by
Philipp Spohr
Browse files
Options
Downloads
Patches
Plain Diff
Some fixes (Java is NOT C++ apparently)
parent
f1f3c7c6
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/hhu/ba/yoshikoWrapper/core/ParameterSet.java
+13
-7
13 additions, 7 deletions
...main/java/de/hhu/ba/yoshikoWrapper/core/ParameterSet.java
with
13 additions
and
7 deletions
src/main/java/de/hhu/ba/yoshikoWrapper/core/ParameterSet.java
+
13
−
7
View file @
3cfe5eaf
...
...
@@ -86,26 +86,32 @@ public class ParameterSet implements TunableValidator
*/
public
ParameterSet
()
{
ArrayList
<
CyColumn
>
c
olumns
=
new
ArrayList
<
CyColumn
>();
ArrayList
<
CyColumn
>
numericC
olumns
=
new
ArrayList
<
CyColumn
>();
//Only numeric columns are relevant for weight mapping
for
(
CyColumn
col
:
net
.
getDefaultEdgeTable
().
getColumns
())
{
if
(
Number
.
class
.
isAssignableFrom
(
col
.
getType
()))
{
c
olumns
.
add
(
col
);
numericC
olumns
.
add
(
col
);
}
}
weightColumn
=
new
ListSingleSelection
<
CyColumn
>(
c
olumns
);
weightColumn
=
new
ListSingleSelection
<
CyColumn
>(
numericC
olumns
);
columns
.
clear
();
ArrayList
<
CyColumn
>
booleanColumns
=
new
ArrayList
<
CyColumn
>
();
//Only boolean columns are relevant for forbidden/permanent mapping
for
(
CyColumn
col
:
net
.
getDefaultEdgeTable
().
getColumns
())
{
if
(
col
.
getType
()
==
Boolean
.
class
)
{
c
olumns
.
add
(
col
);
booleanC
olumns
.
add
(
col
);
}
}
forbiddenColumn
=
new
ListSingleSelection
<
CyColumn
>(
columns
);
permanentColumn
=
new
ListSingleSelection
<
CyColumn
>(
columns
);
forbiddenColumn
=
new
ListSingleSelection
<
CyColumn
>(
booleanColumns
);
permanentColumn
=
new
ListSingleSelection
<
CyColumn
>(
booleanColumns
);
//Don't select any columns by default
weightColumn
.
setSelectedValue
(
null
);
forbiddenColumn
.
setSelectedValue
(
null
);
permanentColumn
.
setSelectedValue
(
null
);
}
@Override
...
...
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