default probe() model argument to None

This commit is contained in:
Lincoln Stein
2023-07-05 13:29:38 -04:00
parent c1da66df8f
commit dfe8458d48
2 changed files with 3 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
from abc import ABC, abstractmethod
import argparse
from typing import Any, Callable, Iterable, Literal, Union, get_args, get_origin, get_type_hints
from typing import Any, Callable, Iterable, Literal, Optional, Union, get_args, get_origin, get_type_hints
from pydantic import BaseModel, Field
import networkx as nx
import matplotlib.pyplot as plt

View File

@@ -64,8 +64,8 @@ class ModelProbe(object):
@classmethod
def probe(cls,
model_path: Path,
model: Optional[Union[Dict, ModelMixin]],
prediction_type_helper: Callable[[Path],SchedulerPredictionType] = None)->ModelProbeInfo:
model: Optional[Union[Dict, ModelMixin]] = None,
prediction_type_helper: Optional[Callable[[Path],SchedulerPredictionType]] = None)->ModelProbeInfo:
'''
Probe the model at model_path and return sufficient information about it
to place it somewhere in the models directory hierarchy. If the model is