Team Ai
Datasetpublic

ysn-rfd/text-dataset-tiny-code-script-py-format

USED of tahamajs/medicine_ds_persian for .parquet file USED of Alijafarixcs2/persian-it-llama2-2k for .parquet file USED of Abirate/english_quotes for .jsonl file NEW FILES (05/12/2025) NEW FILES (12/26/2025) NEW FILES (02/15/2026)

sourceHugging Faceapache-2.0updated 4mo agoView on Hugging Face
3likes1.7kdownloads
engine.py53 linesDownload Raw Back to BIN_BUCKET
1"""
2ENGINE
3=====
4
5Neural Network NN or (nn) engine, tensor calc neural network
6
7Engine NN
8====
9"""
10
11class nn():
12    
13    def nnp(self, x, y, z, n_layer):
14        #---------------------
15
16        x = x
17        y = y
18        z = z
19        n_layer = n_layer
20
21        #-----------------------
22
23        if x == 0:
24            x = 1
25        else:
26            pass
27
28        if y == 0:
29            y = 1
30        else:
31            pass
32
33        if z == 0:
34            z = 1
35        else:
36            pass
37
38        if n_layer == 0:
39            print('L_ERR, Set To 1')
40            n_layer = 1
41        else:
42            pass
43
44        #----------------------
45
46        dim = x*y*z
47        g_layer = dim*n_layer
48
49        #----------------------
50
51        return g_layer
52    
53