Skip to content

Instantly share code, notes, and snippets.

View andoorve's full-sized avatar
👋
Hi!

Murali Andoorveedu andoorve

👋
Hi!
  • CentML
  • 19:34 (UTC -07:00)
View GitHub Profile
@andoorve
andoorve / pipeline_dynamics.txt
Created April 15, 2026 18:30
Pipeline dynamics
pipeline
import numpy as np
class node:
def __init__(self, func, b, input_num, w = []):
self.function = func
self.bias = b
if (w != [] and len(w) == input_num):
self.weights = w
else:
self.weights = (2*np.random.random_sample(input_num))-1
import numpy as np
from scipy.special import expit
def linear(x):
return x
def linear_der(x):
return 1
def relu(inp):