Skip to content

GitLab

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

Closed
Open
Created Nov 19, 2018 by ext-edelen_a@ext-edelen_a

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.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking