Skip to content

Commit

Permalink
lists to tuples in default arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
bnb32 committed Oct 7, 2024
1 parent f5874cb commit ffd960e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mlclouds/autoxval.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def __init__(self, config=CONFIG):
self.stats = None
self._validator = None

def train(self, train_sites=[0, 1, 2, 3, 5, 6], train_files=FP_DATA):
def train(self, train_sites=(0, 1, 2, 3, 5, 6), train_files=FP_DATA):
"""
Train PHYGNN model
Expand Down Expand Up @@ -268,7 +268,7 @@ class AutoXVal:

def __init__(
self,
sites=[0, 1, 2, 3, 4, 5, 6],
sites=(0, 1, 2, 3, 4, 5, 6),
val_sites=None,
data_files=FP_DATA,
val_data=None,
Expand Down Expand Up @@ -455,7 +455,7 @@ def k_fold(
cls,
data_files=FP_DATA,
val_data=None,
sites=[0, 1, 2, 3, 4, 5, 6],
sites=(0, 1, 2, 3, 4, 5, 6),
val_sites=None,
config=CONFIG,
seed=None,
Expand Down Expand Up @@ -484,7 +484,7 @@ def kxn_fold(
cls,
data_files=FP_DATA,
val_data=None,
sites=[0, 1, 2, 3, 4, 5, 6],
sites=(0, 1, 2, 3, 4, 5, 6),
val_sites=None,
config=CONFIG,
shuffle_train=False,
Expand Down

0 comments on commit ffd960e

Please sign in to comment.