Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Submit feedback
  • Sign in
S
src
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 75
    • Issues 75
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 7
    • Merge Requests 7
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • OPAL
  • src
  • Issues
  • #257

Closed
Open
Opened Nov 19, 2018 by ext-edelen_a@ext-edelen_a
  • Report abuse
  • New issue
Report abuse New issue

GA interface is appending new generation output to new json file, rather than having one generation output per json file

according to the input file:

          INITIALPOPULATION=100,
          MAXGENERATIONS=2,
          NUM_MASTERS=1, 
          NUM_COWORKERS=8, 
          SIMTMPDIR="tmp", 
          TEMPLATEDIR="tmpl", 
          FIELDMAPDIR="fieldmaps",
          NUM_IND_GEN=100,
          GENE_MUTATION_PROBABILITY=0.8,
          MUTATION_PROBABILITY=0.8,
          RECOMBINATION_PROBABILITY=0.2;

It seems like this should be 200 samples (100 in population x 2 generations)

However, using mldb to convert to pk reports 300 samples:

OPAL ML Database Generator 
Found 2 json files.
Write ML-Database 1nCGA-small-test.pk
xDim        = 6 -> ['G0', 'G1', 'K0', 'K1', 'PH0', 'PH1']
yDim        = 7 -> ['DE', 'EMITS', 'EMITX', 'EMITY', 'RMSS', 'RMSX', 'RMSY']
generations = 2
Data points  = 300

Looking at the json files:

  • 1_1nCGA_0.json has 100 individuals
  • 2_1nCGA_0.json has 200 individuals

And if we compare the first individual in each case, they are both the same:

			"G0": 63.7949,
			"G1": 17.5757,
			"K0": 474.876,
			"K1": 185.284,
			"PH0": -8.94274,
			"PH1": -2.44182

So it looks like new data is just being appended to the new json file in subsequent generations rather than creating a new file for each generation with only that generation's data in it.

To upload designs, you'll need to enable LFS. More information

Linked issues

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
3
Labels
Bug Feature request Optimiser
Assign labels
  • View project labels
Reference: OPAL/src#257