- Interactive Session
tf.InteractiveSession() creates a default session that can be used without explictly called in a IPython environment
a = tf.constant(1)
- Regular Session
Regular session needs to be run within a python context or through session object
a = tf.constant(1)
sess = tf.Session()
a = tf.constant(1)
This function is used to add bias to the input tensor (element-wise addition between "bias" vector and the feature vector)
It should be noted that the bias added here is completed different from the normal concept of adding a bias to the hidden unit (summed weight before activation)
The run function of tf.Session provides a interface to execute provided TF operations and evaluate Tensors.
Continuous features can be feed into the first hidden layer of the neural network directly. Discrete features are recommended to go through an embedding layer.
This API accepts a [batch_size, doc_length] tensor of type "int32" or "int64"
This API is used to loopup an embedding using ID.
Categorial to Embedding Pipeline
Categorial Label ---> Ordinal ID ---> One-hot Embedding ----> Dense Embedding
The Cause of Immigration
The life quality of western countries is far better than that of China in terms of economical, environmental and social conditions. I found myself increasingly believe in western cultures and values and that is the primary driving force of my immigration thoughts. I need to improve my language skill as well as professional experiences to get ready for the oppertunity. Meanwhile, I need to take it very carefully to examine this thought to confirm it is a good fit for me and my family.
I need a carefully planning to merge my immigration effort with the long-term paradigm shift of my family earning, that is, to shift from work-based earning to asset-based earning. (Asset here is something that can generate revenue without extra mental/physical labor)
Quandl (/ˈkwɑːndəl/) is a platform for financial, economic, and alternative data that serves investment professionals. Quandl sources data from over 500 publishers
Measurement of Dispersion
Coefficient of Variation
Stock Price High-Low Range COV
AAPL (2015-1-1 to 2017-1-1): 0.582
XNET (2015-1-1 to 2017-1-1): 0.803
The dataset of Two Sigma Competition is a h5 file. It can be read into a 1,710,756 rows x 111 columns pandas dataframe.
All datapoints are identified by two attributes combined: id + timestamp, both of which are not unique. Id is a financial security and timestamp indicates the time of quote (Y).
In the dataset there are 1424 different ids and 1813 different timestamps. In general, the data point is sampled in a fixed timestamp interval of 750.
DataFrame Query Method
// Return a slice copy of the DataFrame based on condition
// indexing operators  and attribute operator .
Returning a VIew v.s. Copy
- Return a copy : df["ccc"] // this is chain indexing
- Return a view: df.loc[0, "ccc"]
DataFrame Apply Function
- df.apply() can apply specified operation on the dataframe object
Added a new column to the DataFrame based existing columns
- df = df.apply()
- df = df["one_column"].apply()
Zipline Data Storage Path
Zipline benchmark data download bug:
very serious mentally
keep distance from things
break relationship with
the appearance to someone, the attitude to someone
intended to display but not true
express oneself clearly
unwilling to do something againest one's own thinking
to give comfort in grief or misfortune
quiet and peaceful
of or relating to physical world, not spiritual
a person who does not believe in religion
extremely good or enjoyable
A period of time in Europe when culture and science are in a boom
worth of respect in a religion
to throw someone into disorder
Agreed by a crowd of people
an order from court or other authority that something must be done
To publicly disagree with opinions
Prohibit from doing something
to stray from a principle or norm
a person who have been different part of the world and know a wide range of things
to cause to go to many people / spread knowledge
Carefully watchful to avoid danger
to clear from alleged fault or guilt
widely consent inside a community
A layer of something unpleasant or unwanted that forms on top of a liquid
a usually secret fact that is made known
a bar placed at a water course to increase the depth of the water
secret cooperation with someone for a dishonst purpose
a written order that command someone to appear on court
thinking about something or someone in a way that is too much
A feeling of unity between people who have the same interests, goals , etc
Not overtly or specificially religious
how to deal with situations when team members are not qualified enough to do the job on schedule, is a problem faced by many mangers in technology field. It is not without budget to hire qualified developer, but not enough prospective canadaicates to interview with. The technology industry is experiencing dramatic shortage in skiled manpower.