aip-engine 0.2.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- aip/__init__.py +56 -0
- aip/bio.py +1318 -0
- aip/detector.py +165 -0
- aip/graph.py +124 -0
- aip/llm.py +244 -0
- aip/matrix.py +140 -0
- aip/trading.py +2313 -0
- aip_engine-0.2.1.dist-info/METADATA +94 -0
- aip_engine-0.2.1.dist-info/RECORD +11 -0
- aip_engine-0.2.1.dist-info/WHEEL +5 -0
- aip_engine-0.2.1.dist-info/top_level.txt +1 -0
aip/__init__.py
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"""
|
|
2
|
+
AIP - Algebraic Independence Processor
|
|
3
|
+
|
|
4
|
+
Auto-detects structure in your data and picks the optimal computation path.
|
|
5
|
+
|
|
6
|
+
Core engine:
|
|
7
|
+
import aip
|
|
8
|
+
import numpy as np
|
|
9
|
+
|
|
10
|
+
# Matrices: auto-detects sparse vs dense
|
|
11
|
+
C = aip.multiply(A, B)
|
|
12
|
+
|
|
13
|
+
# Linear system: auto-detects structure
|
|
14
|
+
x = aip.solve(A, b)
|
|
15
|
+
|
|
16
|
+
# Graphs: auto-detects communities, fraud
|
|
17
|
+
info = aip.analyze(edges)
|
|
18
|
+
|
|
19
|
+
# MoE: only activate needed experts
|
|
20
|
+
result = aip.moe_forward(x, experts, router)
|
|
21
|
+
|
|
22
|
+
Optional modules (install with extras):
|
|
23
|
+
pip install aip-engine[trading]
|
|
24
|
+
pip install aip-engine[bio]
|
|
25
|
+
pip install aip-engine[all]
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
__version__ = "0.2.1"
|
|
29
|
+
|
|
30
|
+
# ── Core engine (always available) ──────────────────────────
|
|
31
|
+
from .detector import detect, detect_matrix, StructureReport
|
|
32
|
+
from .matrix import multiply, multiply_verbose, solve
|
|
33
|
+
from .graph import analyze, detect_fraud
|
|
34
|
+
from .llm import MoEEngine, moe_forward, benchmark_moe
|
|
35
|
+
|
|
36
|
+
# ── Optional: Trading ───────────────────────────────────────
|
|
37
|
+
try:
|
|
38
|
+
from .trading import (denoise, find_patterns, scan_binance,
|
|
39
|
+
scan_multiframe, clean_indicators, score,
|
|
40
|
+
verify, auto_strength, order_book_analysis,
|
|
41
|
+
correlation_analysis, funding_rate,
|
|
42
|
+
score_v2, backtest, alert_scan,
|
|
43
|
+
hindsight_test)
|
|
44
|
+
_trading_available = True
|
|
45
|
+
except Exception:
|
|
46
|
+
_trading_available = False
|
|
47
|
+
|
|
48
|
+
# ── Optional: Biology ───────────────────────────────────────
|
|
49
|
+
try:
|
|
50
|
+
from .bio import (parse_pdb, analyze_protein, compare_mutant,
|
|
51
|
+
download_pdb, analyze_p53, simulate_mutation,
|
|
52
|
+
find_rescue_mutations, simulate_rescue,
|
|
53
|
+
validate_rescue)
|
|
54
|
+
_bio_available = True
|
|
55
|
+
except Exception:
|
|
56
|
+
_bio_available = False
|