Flask 小笔记
What is flask?
Python web application framework.
Why flask?
lightweight
ability to scale up.
How to use basic functionality of flask?Here we list the basic functionality of flasj.
Install and activation1234$ mkdir myproject$ cd myproject$ python3 -m venv venv$ . venv/bin/activate
12PS C:\path\to\app> py -m venv venvPS C:\path\to\app> venv\Scripts\activate
Real code example123456from flask import Flaskapp = Flask(__name__)@app.route('/')def hello_world(): return 'Hello ...
Software Engineering Terms Collection 3
Lecture 13/14/15
VV&C
Line coverage/ branch coverage
Bug tracking
review, static analysis
deploy
maintenance
DevOps, communication delay
Waterfall model, Spiral model, The Unified Process
Week 5 Concepts and Categories
concepts as mental representations of classes objects or events. They determine how things are related or categorized.
concepts: improve cognitive economy, help us make useful predictions and generalizations, communicate.
cognitive economy: prototype theory,
classical theory, pros: intuitive, economical, definitions are easy to communicate, easy to check category membership against definition. cons: hard to find satisfactory definitions, borderline/debatable cases, typicality effects.
cate ...
RA Lecture Note: Symbolic Planning Continuous
Tools Collection
Monitoring
Hierarchical planning
Hierarchical task network (HTN)
High level action (HLA)
refinement
Template12345<!-- refinements -->Refinment({ActionName}(variable1, variable2), Precond: {constraints} Steps: {action list})
Monitoring and replanning in unbounded num-determinismExecution monitoring includes action monitoring, plan monitoring.
Hierarchical Planninghierarchical decomposition, Hierarchical task network (HTN) planning: ini ...
RA Lecture Note: Symbolic Planning 1
Tools Collection
search-based problem-solving agent
logic-based planning agent
Planning definition domain language (PDDL)
state-space search
forward state-space search
backward state-space search
plan-space search
partial-order planning
Template123456<!-- PDDL -->Initial State: {state}Goal State: {state}Action({ActionName}(variable1,variable2,...) Precond:{a conjunction, all positive}, Effect:{a conjunction, can extend to disjunction ...
IADS Revision Note: Language Processing Basic
CFG and syntax treecontext-free languages are common to both artificial languages and natural languages, can be resolved by syntax tree, which displays the grammatical consistent structure of a language text and constructing the tree is a step in many language processing (LP) tasks.
grammar specify what syntax tree is possible, consist of terminals of grammar or the leaf of syntax and non-terminals that not appear in sentences of language.
generating syntax tree from grammar, beginning with star ...
plt颜色设置及Matplotlib颜色对照表
Matplotlib几个基本的颜色代码blue( b ), cyan( c ), green( g ), black( k ), magenta( m ), red( r ), white( w ), yellow( y )
Matplotlib颜色对照表
颜色及十六进制对应123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141cnames = {'aliceblue': ...
Week 4 Language Use in the Wild
Lecture 10.1 CommunicationKey linkage
Communication is a goal: to transfer information from sourceto destination.
If M and F are independent, $H(M|F) = H(M)$.
If F deterministically map to M, $H(M|F) = 0$.
Key termscommunication, information, source, destination, computational level goal, necessary subgoal
source, probability distribution over meaning, transmitter, encoder, function, meaning, form, receiver, decoder, noise source, reference resolution
information theory, information c ...
Lecture 9 World Learning
Key termsthe mapping problem, mutual exclusivity, inductive bias, word single object, fast mapping, word, object, observation, cross-situational word learning, sorting, reasoning, word object, co-occurrence statistics, word referent mapping, intension model, cross-situational information, human simulation paradigm, propose-but-verify, hypothetical mapping, intentional reasoning
inductive bias, mutual exclusive bias, whole object bias, taxonomic bias, exposure, testing, meaning error, overextensi ...
Lecture 9 World Learning
Key termsthe mapping problem, mutual exclusivity, inductive bias, word single object, fast mapping, word, object, observation, cross-situational word learning, sorting, reasoning, word object, co-occurrence statistics, word referent mapping, intension model, cross-situational information, human simulation paradigm, propose-but-verify, hypothetical mapping, intentional reasoning
inductive bias, mutual exclusive bias, whole object bias, taxonomic bias, exposure, testing, meaning error, overextensi ...
Software Engineering Terms Collection 2
AbstractThis note collect all terms occur in SEPP Lecture 6/7/9. It would be helpful to recap what has learnt and what has already been abstracted away.
Pool of atomic termsplan-driven development process, heavy documentation, formal documentation, iteration, agile development process, individual, interaction, working software, customer collaboration, responding to change, design, implementation, unfinished feature, requirement engineering, requirement specification document, omniprese ...
Software Engineering Terms Collection 2
AbstractThis note collect all terms occur in SEPP Lecture 6/7/9. It would be helpful to recap what has learnt and what has already been abstracted away.
Pool of atomic termsplan-driven development process, heavy documentation, formal documentation, iteration, agile development process, individual, interaction, working software, customer collaboration, responding to change, design, implementation, unfinished feature, requirement engineering, requirement specification document, omniprese ...
Software Engineering Terms Collection 1
AbstractionThis note collect all terms occur in SEPP Lecture 1/2/4/5. It would be helpful to recap what has learnt and what has already been abstracted away.
Pool of atomic termssmall system, budget, reliability, complex interface, software development, requirement capture, design, construction, implementation, testing, debugging, maintenance, evolution, management, software engineering activity
needs, issues, stakeholder, prioritization, maintenance, evolving requirement, modelli ...
Software Engineering Terms Collection 1
AbstractionThis note collect all terms occur in SEPP Lecture 1/2/4/5. It would be helpful to recap what has learnt and what has already been abstracted away.
Pool of atomic termssmall system, budget, reliability, complex interface, software development, requirement capture, design, construction, implementation, testing, debugging, maintenance, evolution, management, software engineering activity
needs, issues, stakeholder, prioritization, maintenance, evolving requirement, modelli ...