We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 54b200c + 2cc9486 commit eaeebacCopy full SHA for eaeebac
leads/data_persistence/analyzer/jarvis.py
@@ -1,8 +1,18 @@
1
-from leads import L
+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
11
12
13
class Jarvis(object):
- def __init__(self) -> None:
14
+ def __init__(self, backend: JarvisBackend) -> None:
15
+ self.backend: JarvisBackend = backend
16
L.info("Jarvis is enabled\n"
17
"Before proceeding, you must read the following Terms and Conditions carefully:\n"
18
"Jarvis is a deep learning model that aims to provide the optimal operation based on limited inputs.\n"
0 commit comments