syntax.us Let the syntax do the talking
Blog Contact Posts Questions Tags Hire Me

Question:
What are the Python Preso Questions?

These questions are part of a presentation at a Meetup:

python_preso

http://www.meetup.com/BAyPIGgies/events/228208164

Questions:


What is SPY?
What is GSPC?
What is pyspy?
What is Ubuntu 14?
Why (or Why not) use Ubuntu 14?
What is a bullish prediction?
What is a bearish prediction?
What is an ISO file?
What is an Ubuntu update?
What is VirtualBox?
Why is VirtualBox useful?
What are typical VirtualBox drawbacks?
What is an ML-app?
What is a production app?
What is a development environtment?
What is the Ubuntu wizard?
What is an Ubuntu privileged account?
In California, when does the stockmarket typically close?
What is Bash?
In Bash, what does the ~ symbol do for me?
What is sudo?
What is TA-lib?
About This Bash syntax: ./configure --prefix=/usr where do I typically see syntax like that?
In Bash, this command: make does what?
In Bash, this command: wget does what?
How to install TA-lib on Ubuntu?
On Ubuntu, how to install Python?
What is Anaconda?
What is anaconda2?
What is anaconda3?
How to install Anaconda?
Python2 vs Python3, what should I know?
In Bash, this syntax: which python does what?
What is .bashrc ?
What is curl?
Should I use the curl inside Anaconda?
What is /usr/bin/curl?
How to see my version of Python?
In Bash, this syntax: python -c does what?
What is pip?
In Bash, this syntax: pip install does what?
In Bash, this command: conda does what?
pip vs conda, which should I use?
What is crontab?
In Bash what is an executable script?
In Bash how to create an executable script?
In Machine Learning what is a Feature?
What is a simple way to transform time series of prices into time series of Features?
In Machine Learning, how to define: 'Accuracy'?
What is Dan's definition of 'Effectiveness'?
What is a png file?
How does Yahoo format stock market data?
Which Yahoo URL serves stockmarket data?
How large is file full of S&P 500 data from Yahoo?
What is a positive prediction?
What is a negative prediction?
What is a true prediction?
What is a false prediction?
What is a true negative prediction?
What features might a stock speculator study?
In Python what is a List?
With Python what can I put in a List?
After I create a Python List, can I change it?
This Python syntax: import statistics does what?
When I sort a List am I sorting the List or a copy of the List?
This Python syntax: reversed(mylist) does what?
In Python, how to get length of a List?
In Python, how to create a for-loop?
In Python, what is a 'Comprehension'.
What other languages offer syntax like Comprehension?
In other languages, what are the names of syntax-constructs which behave like Comprehension?
In Python how to get a member from a List?
In Python how to get a sub-List from a List?
In Python what could be simple example of if-then-else syntax?
This Python syntax: range(9) does what?
This Python syntax: range(5,9) does what?
This Python syntax: mylist.append(7) appends a 7 at the end of mylist. How to prepend 7 to front of mylist?
In the middle of a Python script, should I check that my assumptions are correct?
In the middle of a Python script, how I check that my assumptions are correct?
In Python how to get sum of numbers in a List?
In Python how to get average of numbers in a List?
In Python how to get moving average of numbers in a List?
In Machine Learning, given a time series of prices and price moving averages, how might I create a feature which makes sense to a speculator?
What is NumPy?
This Python syntax: import numpy does what?
This Python syntax: import numpy as np does what?
What is the most common type of object I create with NumPy?
What is an example of array arithmetic?
Can I do array arithmetic on Python Lists?
In NumPy, how to add a row to an Array?
In NumPy, how to get a row from an Array?
In NumPy, how to change a row in an Array?
In NumPy, how to delete a row from an Array?
In Python how to create a List from Array?
In NumPy how to create an Array from a List?
In NumPy in what ways does an Array behave like a List?
In Python, what is pdb?
In Python, how would I show a simple pdb demo?
In Python, why would I use pdb?
In Python how to create a function which returns 3 numbers?
In Python how to call a function which returns 3 numbers?
This Python syntax: myval = myfunc(name='Dan', age=44) does what?
Could I rewrite myfunc() so the call behaves like this: myval = myfunc('Dan',44) ??
Which behavior do you prefer; first way or second method?
What is Pandas?
This Python syntax: import pandas as pd does what?
In Python, how to see which version of NumPy and Pandas I am using?
How to compare NumPy to Pandas?
In Pandas, what is the most common type of object I create?
This Pandas syntax: df1 = pd.DataFrame(cdate_l) df1.columns = ['cdate'] df1['cp'] = cp does what?
In Pandas, how to create a DataFrame from a List?
In the world of software, what does a Pandas DataFrame remind you of?
In Python, how to create a Pandas DataFrame from a NumPy Array?
In Python how to create a NumPy Array from Pandas DataFrame?
This Pandas syntax: # I should create simple predicates: pred_lt0 = df1['pctlag1'] < 0 pred_gt0 = df1['pctlag1'] > 0 # I should apply them: lt0_df = df1[pred_lt0] gt0_df = df1[pred_gt0] does what?
So, Pandas supports the idea of applying a predicate to a DataFrame; does NumPy support the idea of applying a predicate to an Array?
Does Python support the idea of applying a predicate to a List?
In Math what is Linear Regression?
In Math what is Logistic Regression?
In Machine Learning, what is Regression?
In Machine Learning, what is Classification?
In Machine Learning, can I use Logistic Regression to do Classification?
If I use Logistic Regression to classify some observations, why is 'Regression' in the name of the method?
What is scikit-learn?
In Math, when I talk about Linear Regression, what does the verb 'fit' mean?
This Python syntax: from sklearn import linear_model lrmodel = linear_model.LogisticRegression() lrmodel.fit(x_train_a, label_train_a) does what?
In the above syntax, the developer of lrmodel.fit() assumes what facts about x_train_a, label_train_a?
In Machine Learning, what is a Linear Model?
In Machine Learning, when a machine learns, what does it learn?
After a machine learns, what can it do next?
When I learn from a year of observations of Yahoo GSPC prices, how many observations is that?
Is that enough observations to learn from?
How many observations do I need to learn something useful?
In Machine Learning, what is a Label?
In Machine Learning, what is 'Training-Data'?
In Machine Learning, what is 'Test-Data'?
In Machine Learning, what is 'Validation-Data'?
In Machine Learning, what is 'In-Sample-Data'?
In Machine Learning, what is 'Out-of-Sample-Data'?
This Python syntax: xoos_a = np.array([-0.127,0.791,0.000,-1.194,-2.056, 1.002, 1.004]) xf_a = xoos_a.astype(float) xr_a = xf_a.reshape(1, -1) aprediction = lrmodel.predict_proba(xr_a)[0,1] does what?
In the above syntax if aprediction is 0.55, what does that mean?
What does xr_a.shape tell me about xr_a?
If xr_a.shape is (1,7) what does that mean?
If myarray is a NumPy Array, what is this expression: myarray[0,1] ??
When I talk about predictions, what is a synonym for 'True'?
If I have 10 predictions and 6 of them are True, what is my accuracy?
What is Positive accuracy versus Negative accuracy?
In Pandas, how to create a column from a List?
In Pandas, how to create a column from a Comprehension?
This Python syntax: list1 = [1,2,3] list2 = [4,5,6] list3 = list1 + list2 does what?
This NumPy syntax: mysign = np.sign(prediction-0.5) does what?
This combination of Pandas and NumPy syntax: test_df['pdir'] = [np.sign(prediction-0.5) for prediction in predictions_l] does what?
This Pandas syntax: posp_df = test_df[['pdir','actual_dir']][test_df['pdir'] == 1] does what?
The idea behind effectiveness can be described with two simple sentences: 1. Get all the positive predictions, then calculate their average gain. What English should I write for sentence 2?
If I calculate the average gain of all the positive predictions and then calculate the average gain of all the negative predictions, what should I do next?
In Python how to concatenate two strings together?
What is the "Blue-Line Green-Line Visualization"?
In the "Blue-Line Green-Line Visualization", if the Blue-line, shows a delta of 1%, Green-Line should show delta of what?
If my machine is issuing accurate predictions, the Green-Line should do what?
If my machine is issuing effective predictions, the Green-Line should do what?
In Pandas, how to read a CSV file into a DataFrame?
In Pandas, how to create a CSV file from a DataFrame?
In Python, how to read data values from command line?
This Pandas syntax: myval = df1['cdate'].values does what?
This Python syntax: something = datetime.datetime.strptime(row, "%Y-%m-%d") does what?
This Python syntax: cdate_l = [datetime.datetime.strptime(row, "%Y-%m-%d") for row in df1['cdate'].values] does what?
In Python, what is matplotlib?
This Python syntax: import matplotlib matplotlib.use('Agg') does what?
This Python syntax: import matplotlib.pyplot as plt plt.figure(figsize=(15,10)) plt.plot(cdate_l, cp_l, 'b-', cdate_l, gl_l, 'g-') plt.title('Blue-Line/Green-Line Visualization (Blue: Long Only, Green: Follow Predictions)') plt.grid(True) plt.savefig('/tmp/plt.png') plt.close() does what?
In Bash, this syntax: cd ~ git clone https://github.com/danbikle/herokuspy does what?
What is Heroku?
What is the Heroku Toolbelt?
In Bash, this syntax: ssh-keygen -t rsa does what?
How to deploy a simple Django app to Heroku?
In Bash and SQL, this syntax: sudo su - postgres psql CREATE ROLE ann WITH superuser login; CREATE DATABASE ann; does what?
After I run the above syntax, what would be an obvious next step?
Node.js has package.json and Ruby has Gemfile, what does Python have?
In Bash, this syntax: ~/heroku-client/bin/heroku create hspy10 does what?
In Django how to configure the connection between my app and the database?
In Django how to configure routing?
In Python what is psycopg2?
In Django how to declare and configure models?
In my Django app I see a folder called static; what is that for?
In Django, what is a template?
In Django, how to share HTML between files?
In a Django template, how to refer to an image file which I want to serve?
In Django what is an example of building a ul-element with help from a Python for-loop?
This should be enough questions for a two hour Meetup.
If you have any questions and/or answers, please E-me: bikle101@gmail.com

syntax.us Let the syntax do the talking
Blog Contact Posts Questions Tags Hire Me