-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'regression' into spack
- Loading branch information
Showing
27 changed files
with
1,278 additions
and
1,122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import sys | ||
import subprocess | ||
from pathlib import Path | ||
|
||
|
||
# support for plssvm-train including command line arguments | ||
def train(): | ||
exe_path = Path(__file__).parent / "plssvm-train" | ||
subprocess.run([str(exe_path)] + sys.argv[1:]) | ||
|
||
|
||
# support for plssvm-predict including command line arguments | ||
def predict(): | ||
exe_path = Path(__file__).parent / "plssvm-predict" | ||
subprocess.run([str(exe_path)] + sys.argv[1:]) | ||
|
||
|
||
# support for plssvm-scale including command line arguments | ||
def scale(): | ||
exe_path = Path(__file__).parent / "plssvm-scale" | ||
subprocess.run([str(exe_path)] + sys.argv[1:]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# import all bindings from the compiled PLSSVM module | ||
from .plssvm import * | ||
|
||
# explicitly set the module level attributes | ||
__doc__ = plssvm.__doc__ | ||
__version__ = plssvm.__version__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import plssvm | ||
|
||
# print information regarding the current installation after an installation via pip | ||
def check(): | ||
print("{} ({})".format(plssvm.__doc__, plssvm.__version__)) | ||
print() | ||
|
||
print("Copyright(C) 2018-today The PLSSVM project - All Rights Reserved") | ||
print("This is free software distributed under the MIT license.") | ||
print() | ||
|
||
print("Available target platforms: {}".format(', '.join(str(target) for target in plssvm.list_available_target_platforms()))) | ||
print("Default target platform: {}\n".format(str(plssvm.determine_default_target_platform()))) | ||
|
||
print("Available backends: {}".format(', '.join(str(backend) for backend in plssvm.list_available_backends()))) | ||
for target in plssvm.list_available_target_platforms(): | ||
if target == plssvm.TargetPlatform.AUTOMATIC: | ||
continue | ||
try: | ||
backend = plssvm.determine_default_backend(available_target_platforms=[target]) | ||
print("Default backend for target platform {}: {}".format(str(target), str(backend))) | ||
except: | ||
pass | ||
print() | ||
|
||
if plssvm.BackendType.SYCL in plssvm.list_available_backends(): | ||
print("Available SYCL implementations: {}".format(', '.join(str(impl) for impl in plssvm.sycl.list_available_sycl_implementations()))) | ||
print() | ||
|
||
print() | ||
print("Repository: https://github.com/SC-SGS/PLSSVM.git") | ||
print("Documentation: https://sc-sgs.github.io/PLSSVM/") | ||
print("Issues: https://github.com/SC-SGS/PLSSVM/issues") |
Oops, something went wrong.