Skip to content

Commit

Permalink
Add cache capability to github workflow application
Browse files Browse the repository at this point in the history
  • Loading branch information
knakamura13 committed Aug 4, 2024
1 parent 8eeb720 commit eff6442
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
4 changes: 2 additions & 2 deletions mlrose_hiive/algorithms/mutators/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"""GA Mutators."""

# Author: Genevieve Hayes (modified by Andrew Rollings, Kyle Nakamura)
# Authors: Genevieve Hayes (modified by Andrew Rollings, Kyle Nakamura)
# License: BSD 3 clause

from .change_one_mutator import ChangeOneMutator
from .discrete_mutator import DiscreteMutator
from .swap_mutator import SwapMutator
from .shift_one_mutator import ShiftOneMutator
from .swap_mutator import SwapMutator
2 changes: 1 addition & 1 deletion mlrose_hiive/algorithms/mutators/_mutator_base.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""GA Mutators."""

# Author: Genevieve Hayes (modified by Andrew Rollings, Kyle Nakamura)
# Authors: Genevieve Hayes (modified by Andrew Rollings, Kyle Nakamura)
# License: BSD 3 clause

from abc import ABC, abstractmethod
Expand Down
3 changes: 2 additions & 1 deletion mlrose_hiive/algorithms/mutators/change_one_mutator.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""GA Mutators."""

# Author: Genevieve Hayes (modified by Andrew Rollings, Kyle Nakamura)
# Authors: Genevieve Hayes (modified by Andrew Rollings, Kyle Nakamura)
# License: BSD 3 clause

import numpy as np

from mlrose_hiive.algorithms.mutators._mutator_base import _MutatorBase
Expand Down
3 changes: 2 additions & 1 deletion mlrose_hiive/algorithms/mutators/discrete_mutator.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""GA Mutators."""

# Author: Genevieve Hayes (modified by Andrew Rollings, Kyle Nakamura)
# Authors: Genevieve Hayes (modified by Andrew Rollings, Kyle Nakamura)
# License: BSD 3 clause

import numpy as np

from mlrose_hiive.algorithms.mutators._mutator_base import _MutatorBase
Expand Down
3 changes: 2 additions & 1 deletion mlrose_hiive/algorithms/mutators/shift_one_mutator.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""GA Mutators."""

# Author: Genevieve Hayes (modified by Andrew Rollings, Kyle Nakamura)
# Authors: Genevieve Hayes (modified by Andrew Rollings, Kyle Nakamura)
# License: BSD 3 clause

import numpy as np

from mlrose_hiive.algorithms.mutators._mutator_base import _MutatorBase
Expand Down
3 changes: 2 additions & 1 deletion mlrose_hiive/algorithms/mutators/swap_mutator.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""GA Mutators."""

# Author: Genevieve Hayes (modified by Andrew Rollings, Kyle Nakamura)
# Authors: Genevieve Hayes (modified by Andrew Rollings, Kyle Nakamura)
# License: BSD 3 clause

import numpy as np

from mlrose_hiive.algorithms.mutators._mutator_base import _MutatorBase
Expand Down

0 comments on commit eff6442

Please sign in to comment.