Benign python Download

mypractical 0.1.0

“College practical programs, importable and exportable as standalone .py files”

Module built on the numeric Python stackImports the NumPy array library

Evidence

Python module-level function call lines 1–48
⋯8 lines
9
10_CODE = '''\
11import numpy as np
12
13class Perceptron:
14 def __init__(self, input_size, learning_rate=1):
15 self.weights = np.zeros(input_size)
16 self.bias = 0
17 self.learning_rate = learning_rate
⋯26 lines
44 break
45
46inputs = np.array([[1, 1], [1, -1], [-1, 1], [-1, -1]])
47targets = np.array([1, -1, -1, -1])
48perceptron = Perceptron(input_size=2)

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.