Skip to content

Commit eaeebac

Browse files
committed
Merge branch 'refs/heads/216'
# Conflicts: # leads/data_persistence/analyzer/dynamic.py # leads/data_persistence/analyzer/jarvis.py
2 parents 54b200c + 2cc9486 commit eaeebac

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

leads/data_persistence/analyzer/jarvis.py

+12-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
1-
from leads import L
1+
from abc import ABCMeta as _ABCMeta, abstractmethod as _abstractmethod
2+
3+
from leads.logger import L
4+
from .._computational import array as _array
5+
6+
7+
class JarvisBackend(object, metaclass=_ABCMeta):
8+
@_abstractmethod
9+
def predict(self, x: _array) -> tuple[float, float]:
10+
raise NotImplementedError
211

312

413
class Jarvis(object):
5-
def __init__(self) -> None:
14+
def __init__(self, backend: JarvisBackend) -> None:
15+
self.backend: JarvisBackend = backend
616
L.info("Jarvis is enabled\n"
717
"Before proceeding, you must read the following Terms and Conditions carefully:\n"
818
"Jarvis is a deep learning model that aims to provide the optimal operation based on limited inputs.\n"

0 commit comments

Comments
 (0)