exam123

import torch

import torch.nn as nn

import torch.nn.functional as F

from transformers import AutoTokenizer

from datasets import load_dataset

tokenizer = AutoTokenizer.from_pretrained("bert-base-uncased")

class SelfAttention(nn.Module):

def __init__(self, embed_dim, num_heads):

super().__init__()

self.num_heads = num_heads

self.head_dim = embed_dim // num_heads

self.qkv = nn.Linear(embed_dim, 3 * embed_dim)

self.out = nn.Linear(embed_dim, embed_dim)

def forward(self, x):

B, T, C = x.shape

qkv = self....

See on Student Notes »

Hhsfhh

1. Algebraic System

An algebraic system is a non-empty set together with one or more operations (like addition or multiplication) defined on it.
Example: A set AAA with an operation ∗*∗ is written as (A,∗)(A, *)(A,∗).


2. Semigroup

A semigroup is a set SSS with a binary operation ∗*∗ that is associative:

(a∗b)∗c=a∗(b∗c),∀a,b,c∈S(a * b) * c = a * (b * c), \quad \forall a,b,c \in S(a∗b)∗c=a∗(b∗c),∀a,b,c∈S


3. Monoid

A monoid is a semigroup that has an identity element

...

See on Student Notes »

Markdown Cheatsheet

Tema

Uso

Dica

Exemplo

Resultado

Títulos

Estruturar documentos

Use # para hierarquia

# Título 1

## Título 2

### Título 3

Título 1

Título 2

Título 3

Ênfase

Destacar partes importantes

Use negrito para destaque

*itálico*

**negrito**

***ambos***

~~riscado~~

itálico

negrito

ambos

riscado

Listas

Organização de ideias

Use listas para organizar

- Item

- Subitem

1. Primeiro

  • Item

  • Subitem

  1. Primeiro

Checklist para tarefas

GitHub, tarefas

...

See on Wikiteka »

DCN2CEB

As conceções alternativas são interpretações intuitivas e pessoais que as crianças constroem para explicar fenómenos naturais antes do ensino formal. Frequentemente designadas como ideias prévias, estas visões podem chocar com o conhecimento científico (ex: "o Sol gira em torno da Terra").  Frequentemente, estas interpretações entram em conflito com as explicações científicas que são escolarmente valorizadas. Na literatura educativa, estas visões são também conhecidas como ideias
...

See on Wikiteka »

gthnuj

Teorias do Envelhecimento Psicossocial Teoria da Desinserção:  O envelhecimento é acompanhado de um desmembrar entre o indivíduo e a sociedade. Quando a desinserção é geral, o indivíduo modifica o seu sistema de valores. A perda do papel que desempenha na sociedade, a perda de relações de impessoais e sociais acabam por tornar-se situações normais e rotineiras.Teoria da Continuidade:Afirma que o envelhecimento é uma parte integrante e funcional do ciclo de vida. O indivíduo idoso

...

See on Wikiteka »

Python

Lecture 1 

flowchart

Pseudocode

• Abbreviated plain English version of actual computer code

• Symbols used in flowcharts replaced by English-like statements

• Allows programmer to focus on steps required to solve problem

Hierarchy Chart

• Shows the overall program structure

• Depict organization of program, omit specific processing logic

• Describe what each part, or module, of the program does

• Each module subdivided into a succession of submodules

Three structures

• Sequence

...

See on Student Notes »

Amr test

Ques1?  Define the term mobile robotics? explain its significance and applications?

Ans Mobile Robotics – Definition
Mobile robotics is a branch of Robotics that deals with the design, construction, and operation of robots capable of moving freely in an environment (unlike fixed industrial robots). These robots use sensors, control systems, and intelligent algorithms to navigate and perform tasks autonomously or semi-autonomously. 

Significance of Mobile Robotics

Mobile robotics plays a crucial

...

See on Student Notes »

sheet

📘 ACC 202 FINAL — ULTRA MASTER CHEAT SHEET


🔹 CORE RULES (APPLIES TO EVERYTHING)

  • Match the method to the data given
    • Units given → Units-of-production
    • Time given → Straight-line
  • Always update depreciation BEFORE disposal
  • Watch time carefully (months vs years vs 360 days)
  • Accrual vs Cash matters (expenses when incurred, not paid)
  • Normal balances matter for every JE

🔹 CH 10 — ASSETS

Asset Classification

  • Tangible → Depreciation
  • Natural Resources → Depletion
  • Intangible →
...

See on Student Notes »

Cheat Sheet

CHAPTER 10 — Plant Assets, Natural Resources, Intangibles

Asset Classification

Depreciated (Tangible) • Buildings • Equipment • Machinery • Vehicles

Depleted (Natural Resources) • Timber • Oil • Minerals

Amortized (Intangible) • Patents • Copyrights • Franchises • Trademarks (limited life)


Cost of Assets

Total Cost = all expenditures to get asset ready for use Includes: purchase price, taxes, shipping, installation, testing, legal fees.


Depreciation Methods

Straight‑Line...

See on Student Notes »