Classi OOP

Introduzione a OOP Per la definizione di classe andare a guardare Object Orientation, però lo ripeto in questa occasione, è solamente un modello su cui andare a costruire degli oggetti. Capisaldi Incapsulazione (con interfaccia, base per la documentazione) Astrazione Ereditarietà Dispatch dinamico Inheritance to avoid code duplication Subtyping to express classification Overriding to specialize methods Dynamic binding to adapt reused algorithms Costruttori Il costruttore è un codice utilizzato per inizializzare correttamente lo stato interno. Le regole sono le stesse dei metodi sovraccaricati (dinamica per la chiamata, statica per il numero dei parametri che prende in input). ...

September 26, 2025 · Reading Time: 6 minutes ·  By Xuanqiang Angelo Huang

Teoria dei Tipi

Introduzione alla Teoria dei Tipi History of Languages Research The root of languages research are in: in logic and computations (even before computers!). Artificial intelligence (Lisp, constrained solvers, the original logical AI we studied in (Russell & Norvig 2009)). Algebra and symbolic reasoning. Definizione di Tipo Un metodo sintattico praticabile per dimostrare l’assenza di determinati comportamenti del programma, fatto classificando le unità sintattiche in base ai tipi di valore che assumono ...

September 28, 2025 · Reading Time: 14 minutes ·  By Xuanqiang Angelo Huang

Data Analysis Methods in Neural Science

This note is just a collection of past useful notes to know to apply machine learning methods for the analysis of topics interesting in the neural sciences. Estimators You need to know all Parametric Modeling. We want to estimate unknown random variables with some observations. Maximum Likelihood See Bayesian Linear Regression. Bias-Variance Decomposition Fisher Information See Parametric Modeling#Fisher information. Applications Echo-locating bats Egyptian fruit flies bats use echo location to locate the target, emitting clicks and capturing echo to navigate the environment. Bats use to click slightly left and right compared to their direction of motion. It is interesting to observe and study how these bats are clicking around to move. ...

August 28, 2025 · Reading Time: 2 minutes ·  By Xuanqiang Angelo Huang

Firing-rate based Network models

The Potassium Exchange values We use the measurement by Cole and Curthis 40mS/cm squared was their measure of Potassium ions leaving the membrane $$ \Delta Q = Idt = GA \Delta E dt $$The potassium concentration is 0.155 moles per litre. Where $G$ is the conductance per unit area, $A$ the membrane surface, $E$ voltage deflection Remember that the conductance is the reciprocal of the resistance, and $V = IR \implies I = \frac{V}{R} = GV$ ...

August 26, 2025 · Reading Time: 7 minutes ·  By Xuanqiang Angelo Huang

Human Vision

Vision is THE most important sense for humans. Most of the information we get is through vision 90% vision This is true for humans, but for mice for example it is different, they have probably a 64x64 pixel resolution equivalent. For humans, visual data is more important, it is faster compared to speech and other senses. We can also see this when we are talking about quantity of neurons: 30% of neurons in the cortex are for vision. 8% tactile, touch 3% hearing Rest is for other Precision of human vision Human vision is estimated to be about 576 Megapixels of data (3M snapshots patched together with saccades, that has that pixel image value), since it can distinguish 0.6arc-minutes (0.01 degrees). There is an estimate of about 60kk ± 12kk rods and 3kk ±0.5kk cones. This means that the image is constructed by high resolution saccades (patches). ...

August 26, 2025 · Reading Time: 9 minutes ·  By Xuanqiang Angelo Huang

Intrinsic Motivation and Playfulness

We have a classical exploration-exploitation tradeoff, see Reinforcement Learning, a introduction. Why would animals explore, even if there is no immediate reward based on it? Animals are able to adapt and explore nonetheless. It would be thus nice to understand and implement these features in artificial systems. We will attack this from an evolutionary psychology perspective: Playfulness and intrinsic motivation. Curiosity Here we will talk about why animals are pushed to explore. ...

August 26, 2025 · Reading Time: 7 minutes ·  By Xuanqiang Angelo Huang

Synapses

Synapses are the connections that exist between one neuron and another, so we can think of them as the communication channel between neurons. Gap Junctions Electrical based These are also called Gap Junctions These are more direct connections between neurons, allowing excitation ions to pass through quite directly (this is the difference compared to chemically based ones). It’s a circuit more similar to an electronic one because it’s faster. The end of the presynapsic part is called axon bouton, or axon terminal. Another characteristic of these kinds of synapses is that they are two-way channels. ...

August 26, 2025 · Reading Time: 6 minutes ·  By Xuanqiang Angelo Huang

Neural Imaging

In general we want to understand how neurons encode the rate and temporal information to build specific features like place cells, grid cells, velocity, head direction, or how it can guide behaviour or coordination. Many neurons encode together some features, it is quite rare that you have the face neuron and similars. Imaging techniques help us to get more information about these parts. Basics of Microscopy Image of a classical microscope, from course slides ...

August 25, 2025 · Reading Time: 14 minutes ·  By Xuanqiang Angelo Huang

Neural mechanisms

The synaptic connections that define such circuits are typically made in a dense tangle of dendrites, axons terminals, and glial cell processes that together constitute what is called neuropil. Knee-Jerk Response The knee-jerk reflex (also known as the patellar reflex) is a classic example of a mono-synaptic reflex arc, which involves a direct connection between sensory and motor neurons, as well as inhibitory circuits to regulate movement. This is important for us if we fall and hit something. ...

August 25, 2025 · Reading Time: 14 minutes ·  By Xuanqiang Angelo Huang

The Neuron

Introduction to the Course What is a neural system? A neural system is an intricately organized network of specialized cells—primarily neurons, along with a variety of supportive glial cells—that processes and transmits information via electrical and chemical signals. In biological organisms, such systems underpin the entire nervous system, coordinating functions that range from basic reflexes to the complex interplay of perception, thought, and behavior. Early studies in neurobiology revealed that even simple neural circuits can generate coordinated responses, while modern neuroscience has shown that vast, hierarchically structured networks (such as the central and peripheral nervous systems) are responsible for the rich tapestry of animal behavior and cognition ...

August 25, 2025 · Reading Time: 11 minutes ·  By Xuanqiang Angelo Huang