07 Mar 2014
-
Supervised Learning
- Regression(Continuous value)
- Classification(Discrete value)
-
Unsupervised Learning
Features
Infinite features
“Batch” Gradient Descent
Each step of gradient descent uses all the training examples.
Normal equation method
28 Feb 2014
###5.3 Unbound Universal Quantifiers
####5.3.1 Generator Axioms and Exploding Scopes
####5.3.2 Omitting the Generator Axiom
###Question
-
What about
module analysis/paramSets [t]
-
every relational expression in Alloy has a value
###Feb 28 Class
####Universal existential quantifier
some |
all
Using the bound of n will be sufficient.
####The monadic fragment
constraints:
- pred calculus
- only unary relations(K)
Bound:
Mar 5 Class
Syntax v.s. Semantics
See my written notes
Mar 7 Class
domain v.s. co-domain:(Universe: 1,2,3,4,5,6…)
- domain: 1 ,2 ,3 ,4 ,5 ,6…
- co-domain: 1, 4, 9, 16…
Instance:
- atoms
- functions
- relations
Propositional logic(boolean logic)
Mar 10 Class
Not symmetric
What about the algorithm for Aluminum?
16 Feb 2014
###5.1 Threads implementations
####5.1.1 Strategies
#####5.1.1.1 One-Level Model
Each user thread is mapped one-to-one to a kernel thread.
#####5.1.1.2 Two-Level Model
Single Kernel Thread
N-to-1 model
Multiple Kernel Thread
M-to-N model
#####5.1.1.3 Scheduler Activations
upcall: as opposite to system call, going from system code to user code.
####5.1.2 A Simple Threads Implementation
- A global variable:
CurrentThread
- A run queue
- Each resource(eg. mutex) has a wait queue
####5.1.3 Multiple Processors
- CAS(atomatically compare and swap)
- spin lock
- block lock
- futex
###5.2 Interrupts
####5.2.1 Interrupt Handlers
#####5.2.1.1 Synchronization and Interrupts
On uniprocessor systems with non-preemptive kernels, things are easy, just mask interrupt when synchronization is needed
Systems with preemptive kernels, trickey.
#####5.2.1.2 Interrupt Threads
####5.2.2 Deferred Work
- Handle more interrupts
- DPC
####5.2.3 Directed Processing
#####5.2.3.1 Asynchronous Procedure Calls
APC
#####5.2.3.2 Unix Signals
- Save all registers on entry to the handler and restore them on return
- Unblock the signal on return
###5.3 Scheduling
####5.3.1 Strategy
#####5.3.1.1 Simple Batch Systems
#####5.3.1.2 Multiprogrammed Batch Systems
#####5.3.1.3 Time-sharing Systems
#####5.3.1.4 Shared Servers
Stride scheduling(use scaled-integer arithmetic)
#####5.3.1.5 Real-time Systems
Priority inheritance(cascading inheritance)
####5.3.2 Tactics
#####5.3.2.1 Handoff Scheduling
#####5.3.2.2 Preemption Control
#####5.3.2.3 Multiprocessor Issues
####5.3.3 Case Studies
#####5.3.3.1 Scheduling in Linux
#####5.3.3.2 Scheduling in Windows
16 Feb 2014
###4.1 An example: self-grandpas
###4.2 Signatures and Fields
####4.2.1 Signatures
####4.2.2 Basic Field Declarations
####4.2.3 Grouping Disjoint Fields
###4.4 Types and Type Checking
####4.4.1 Basic Types
####4.4.2 Relational Types
####4.4.3 Type Errors
####4.4.4 Field Overloading
###Questions:
- P111 what exactly is overapproximation?
- P113 Example alias?
- all this: Course and some this: Course
###Notes during asgn 2
- I’ve never thought that we can use Alloy to model something like songs or lyrics. I guess it’s because sentence contains logic, and Alloy can model the logic.
###Feb 21 Class
- Alloy only runs within the scope, so it’s never exhaustive to the whole searching space. This should always be kept in mind.
- But, bugs tend to appear with smaller scope.(not always)
###Feb 24 Class
- seq vs order
- seq doc
- the existence of
++
operator
-
override module name
open util/ordering[Cats1] as trace1
open util/ordering[Cats2] as trace2
###Feb 26 Class
####Skolemization
#####Skolem Depth:(my experiment)
- It counts
all x: S| all y: S
as one depth
- Same quantifiers in sequence is 1 depth
- top level is 0 depth
#####Useful for:
Debugging
#####Tradeoff:
Skolem |
No |
Yes |
Constraints |
Same |
Less(some are shifted to Skolem variable) |
Fields |
Same |
More(to represent some constraints) |
###Note during asgn 3
- Don’t over-think things. Just follow the first instinct.
- The idea of representing infinity in Alloy is to be learned.