| @@ -53,7 +53,7 @@ For Linux users: | |||||
| $ sudo apt-get install swi-prolog | $ sudo apt-get install swi-prolog | ||||
| ``` | ``` | ||||
| For Windows and Mac users, please refer to the [Swi-Prolog Download Page](https://www.swi-prolog.org/Download.html). | |||||
| For Windows and Mac users, please refer to the [Swi-Prolog Install Guide](https://github.com/yuce/pyswip/blob/master/INSTALL.md). | |||||
| ## Examples | ## Examples | ||||
| @@ -66,9 +66,9 @@ class BasicNN: | |||||
| num_workers: int = 0, | num_workers: int = 0, | ||||
| save_interval: Optional[int] = None, | save_interval: Optional[int] = None, | ||||
| save_dir: Optional[str] = None, | save_dir: Optional[str] = None, | ||||
| train_transform: Callable[..., Any] = None, | |||||
| test_transform: Callable[..., Any] = None, | |||||
| collate_fn: Callable[[List[Any]], Any] = None, | |||||
| train_transform: Optional[Callable[..., Any]] = None, | |||||
| test_transform: Optional[Callable[..., Any]] = None, | |||||
| collate_fn: Optional[Callable[[List[Any]], Any]] = None, | |||||
| ) -> None: | ) -> None: | ||||
| if not isinstance(model, torch.nn.Module): | if not isinstance(model, torch.nn.Module): | ||||
| raise TypeError("model must be an instance of torch.nn.Module") | raise TypeError("model must be an instance of torch.nn.Module") | ||||
| @@ -31,4 +31,4 @@ For Linux users: | |||||
| $ sudo apt-get install swi-prolog | $ sudo apt-get install swi-prolog | ||||
| For Windows and Mac users, please refer to the `Swi-Prolog Download Page <https://www.swi-prolog.org/Download.html>`_. | |||||
| For Windows and Mac users, please refer to the `Swi-Prolog Install Guide <https://github.com/yuce/pyswip/blob/master/INSTALL.md>`_. | |||||
| @@ -51,7 +51,7 @@ For Linux users: | |||||
| $ sudo apt-get install swi-prolog | $ sudo apt-get install swi-prolog | ||||
| For Windows and Mac users, please refer to the `Swi-Prolog Download Page <https://www.swi-prolog.org/Download.html>`_. | |||||
| For Windows and Mac users, please refer to the `Swi-Prolog Install Guide <https://github.com/yuce/pyswip/blob/master/INSTALL.md>`_. | |||||
| References | References | ||||
| ---------- | ---------- | ||||
| @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta" | |||||
| name = "abl" | name = "abl" | ||||
| version = "0.1.4" | version = "0.1.4" | ||||
| authors = [ | authors = [ | ||||
| { name="LAMDA 2023" }, | |||||
| { name="LAMDA 2024" }, | |||||
| ] | ] | ||||
| description = "Abductive learning package project" | description = "Abductive learning package project" | ||||
| readme = "README.md" | readme = "README.md" | ||||