Skip to content

GitHub actions#364

Merged
ahmedfgad merged 5 commits into
masterfrom
github-actions
Jun 10, 2026
Merged

GitHub actions#364
ahmedfgad merged 5 commits into
masterfrom
github-actions

Conversation

@ahmedfgad

Copy link
Copy Markdown
Owner

No description provided.

ahmedfgad added 5 commits June 9, 2026 16:15
predict() cloned the whole model on every call and then used
model.predict(). When predict() runs once per solution inside a fitness
function, this is slow. It now sets the solution as the model weights,
restores the original weights at the end, and calls the model directly
when no batching is asked for. The output is the same and it runs much
faster. model.predict() is still used when batch_size or steps is given.
@ahmedfgad ahmedfgad merged commit 732f678 into master Jun 10, 2026
1 check passed
@github-actions

Copy link
Copy Markdown

📊 Change summary

7 files changed · +59 / −11 lines

pie showData
    title Lines changed per file (70 total)
    "pygad/kerasga/kerasga.py" : 28
    "docs/source/images/pygad_vilvik_cloud.svg" : 24
    "docs/source/index.md" : 12
    ".gitignore" : 3
    "pygad/kerasga/__init__.py" : 2
    "pygad/pygad.py" : 1
Loading
Per-file breakdown
File + total
pygad/kerasga/kerasga.py 20 8 28
docs/source/images/pygad_vilvik_cloud.svg 24 0 24
docs/source/index.md 11 1 12
.gitignore 3 0 3
pygad/kerasga/__init__.py 1 1 2
pygad/pygad.py 0 1 1
docs/source/images/pygad_vilvik_cloud.png 0 0 0
Total (7 files) 59 11 70

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant