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.

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 masterJun 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.py20828
docs/source/images/pygad_vilvik_cloud.svg24024
docs/source/index.md11112
.gitignore303
pygad/kerasga/__init__.py112
pygad/pygad.py011
docs/source/images/pygad_vilvik_cloud.png000
Total (7 files)591170

Sign up for freeto 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

@ahmedfgad