-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathparis.py
56 lines (48 loc) · 1.83 KB
/
paris.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# PARIS: Perpetual Adaptive Regenerative Intelligence System
# /\__/\ - paris.py
# ( o.o ) - v0.0.1
# >^< - by @rUv
class CoreModel:
def __init__(self, model_path, data_path, feedback_path, regen):
self.model_path = model_path
self.data_path = data_path
self.feedback_path = feedback_path
self.regen = regen
class ApiService:
def __init__(self, provider, security, feedback, regen):
self.provider = provider
self.security = security
self.feedback = feedback
self.regen = regen
class AiApplication:
def __init__(self, app_type, evaluation, feedback, regen):
self.app_type = app_type
self.evaluation = evaluation
self.feedback = feedback
self.regen = regen
class CustomApplication:
def __init__(self, app_type, explainability, feedback, regen):
self.app_type = app_type
self.explainability = explainability
self.feedback = feedback
self.regen = regen
class Paris:
def __init__(self, core, api, apps, custom):
self.core = core
self.api = api
self.apps = apps
self.custom = custom
def print_layers(self):
print("PARIS Framework:")
print(f"Layer 0: {self.core}")
print(f"Layer 1: {self.api}")
print(f"Layer 2: {self.apps}")
print(f"Layer 3: {self.custom}")
# Create a PARIS instance
core = CoreModel("path/to/core/model", "path/to/core/data", "path/to/core/feedback", True)
api = ApiService("api-service-provider", "api-security-settings", True, True)
apps = AiApplication("specialized-application", "benchmarking-method", True, True)
custom = CustomApplication("custom-application", "interpretability-strategy", True, True)
paris = Paris(core, api, apps, custom)
# Print the PARIS layers
paris.print_layers()