from sklearn.preprocessing import LabelEncoder
from sklearn.preprocessing import StandardScaler
from sklearn.compose import ColumnTransformer
from sklearn.pipeline import make_pipeline
from lightgbm import LGBMClassifier
from category_encoders import OneHotEncoder
from sklearn.model_selection import cross_val_predict
from warnings import filterwarnings
from sklearn.impute import SimpleImputer
Your byte size news and commentary from Silicon Valley the land of startup vanities, coding, learn-to-code and unicorn billionaire stories.
Ad
Friday, August 16, 2019
Import Sklearn libraries and functions
Tuesday, August 13, 2019
Differential Privacy and Federated Learning 101
A list of glossary, vocabulary for differential privacy, secure AI, and federated learning on sensitive dataset. All concepts are theoretical, for discussion purpose only, are NOT intended for production nor any professional usage, and should NOT be used. This is a very new experimental concept in AI.
Before you read our article please read our disclaimer page. It is very important to note that this article and all articles, content on our website and affiliated websites are for discussion / entertainment purpose only. They should NOT be considered professional advice. Content on this site, our affiliated sites and social media are NOT intended for commercial purpose; NOT for production purpose; NOT for professional usage.
What is a scenario that differential privacy is useful? When a researcher wants to analyze a sensitive dataset, such as a dataset containing patient data, and or when a research wants to make a model that learns sensitive features, and or make a sensitive prediction: i.e. if a patient has a health issue, such as HIV.
Differential Privacy
"mathematical definition of privacy. In the simplest setting, consider an algorithm that analyzes a dataset and computes statistics about it (such as the data's mean, variance, median, mode, etc.). Such an algorithm is said to be differentially private if by looking at the output, one cannot tell whether any individual's data was included in the original dataset or not. In other words, the guarantee of a differentially private algorithm is that its behavior hardly changes when a single individual joins or leaves the dataset " - Harvard Differential Privacy Group
Query:
See the above quote
Mean variance medium mode
Advanced: machine learning and deep learning model.
Differentially private tools
Sensitive database
Anonymization: the old way, removing sensitivity personally identifiable information, has shown to sometimes fail. No guarantee.
Example where data thought to be anonymous, fails to protect privacy:
Latanya Sweeney showed gender, date-of-birth, zipcode can identify many Americans. This is also the governor medical record example. This is known linkage attack.
Linkage Attack:
See above
"too many innocuous (even completely random) queries about a database inherently violates the privacy of its individual contributors. ... tradeoff between statistical utility and privacy." - Harvard Privacy Group
owner: the initial virtual owner is me
pointer API for send() and get() data among virtualworkers.
Pysyft https://github.com/OpenMined/PySyft
Deep Learning using pysyft
Before you read our article please read our disclaimer page. It is very important to note that this article and all articles, content on our website and affiliated websites are for discussion / entertainment purpose only. They should NOT be considered professional advice. Content on this site, our affiliated sites and social media are NOT intended for commercial purpose; NOT for production purpose; NOT for professional usage.
What is a scenario that differential privacy is useful? When a researcher wants to analyze a sensitive dataset, such as a dataset containing patient data, and or when a research wants to make a model that learns sensitive features, and or make a sensitive prediction: i.e. if a patient has a health issue, such as HIV.
Differential Privacy
"mathematical definition of privacy. In the simplest setting, consider an algorithm that analyzes a dataset and computes statistics about it (such as the data's mean, variance, median, mode, etc.). Such an algorithm is said to be differentially private if by looking at the output, one cannot tell whether any individual's data was included in the original dataset or not. In other words, the guarantee of a differentially private algorithm is that its behavior hardly changes when a single individual joins or leaves the dataset " - Harvard Differential Privacy Group
Query:
See the above quote
Mean variance medium mode
Advanced: machine learning and deep learning model.
Differentially private tools
Sensitive database
Anonymization: the old way, removing sensitivity personally identifiable information, has shown to sometimes fail. No guarantee.
Example where data thought to be anonymous, fails to protect privacy:
Latanya Sweeney showed gender, date-of-birth, zipcode can identify many Americans. This is also the governor medical record example. This is known linkage attack.
Linkage Attack:
See above
"too many innocuous (even completely random) queries about a database inherently violates the privacy of its individual contributors. ... tradeoff between statistical utility and privacy." - Harvard Privacy Group
owner: the initial virtual owner is me
pointer API for send() and get() data among virtualworkers.
Pysyft https://github.com/OpenMined/PySyft
Deep Learning using pysyft
Monday, August 12, 2019
Tech Digest Summer-Fall 2019
Google Cloud
Kubernetes Clusters "What's a cluster? It's a set of master components that control the system as a whole and a set of nodes that run containers. In Kubernetes, a node represents a computing instance. In Google Cloud, nodes are virtual machines running in Compute Engine. " - Google CloudService group pods together. Each pod usually contains one container.
Public IP: allows outside visitors to access Google Cloud resources.
Deep Learning
- Input times weight add a bias activate.
- Deep learning at home: GTX 1080 Ti
Deep Learning Neural Networks
- Inpspired by neural networks
- These are artificial neural networks
- Connected nodes, with edges
- Model sued to estimate and or approximate functions
- Need large number of inputs
Deep Learning Neural Networks
- Inpspired by neural networks
- These are artificial neural networks
- Connected nodes, with edges
- Model sued to estimate and or approximate functions
- Need large number of inputs
Graph Convolutional Network (GCN) :
- Adjacency matrix is the input to GCN
- Geometric deep learning versus 2D euclidean learning
- RNN is a chained graph, replace each unit with a recurrent unit
Facebook NLP multiple languages
https://ai.facebook.com/tools/fasttext
What function turns products into sums? Choices: Sin, Cos, Log, Exp. Answer log. Log will turn products into sum. [Deep Learning math tricks]
https://ai.facebook.com/tools/fasttext
What function turns products into sums? Choices: Sin, Cos, Log, Exp. Answer log. Log will turn products into sum. [Deep Learning math tricks]
Secured & Private AI
Private machine learning on data you are not supposed to see.
Expression
How to resolve XYZ?
What would you do for XYZ?
How do you solve XYZ?
Best co-working place in the world
Best exhibitions at tech conferences
Technology
How to host Discourse Forum on Google Cloud? Bitnami implementation, monthly host, public ID static address with CNAME DNS configuration.
Server for Python backend : Tornado, there's also Tornado UI to aim with fast development
Host Keras machine learning deep learning models in browser: using keras js
Visualizing convolutional layers https://www.oreilly.com/ideas/visualizing-convolutional-neural-networks
Startup devtools: Marvel, VideoScribe, Youtube shorts, grapheneDB, graph adjacency matrix,
"Discourse is an open source discussion platform with built-in moderation and governance systems that let discussion communities protect themselves from bad actors even without official moderators." - Google Cloud market place. Discourse smartly manages who can post and how often they can post. Advanced features are only available for reputable and situated community members. Bitnami provides some security measures.
FAQ for Machine Learning
Where to find open Jupyter Notebook directory?
Standard Scaler versus MinMaxScaler. Standard Scaler MinMaxScaler strength and weakness.
http://rajeshmahajan.com/standard-scaler-v-min-max-scaler-machine-learning/ MinMaxScaler takes into X.max and X.min so it is sensitive to outliers.
Standard Scaler versus MinMaxScaler. Standard Scaler MinMaxScaler strength and weakness.
http://rajeshmahajan.com/standard-scaler-v-min-max-scaler-machine-learning/ MinMaxScaler takes into X.max and X.min so it is sensitive to outliers.
Tutorials
fast.ai
Pysyft tutorial, Andrew Trask in Slack
CS50
ICME
Qwiklab games
Pysyft tutorial, Andrew Trask in Slack
CS50
ICME
Qwiklab games
Data Science
Pandas
Pandas.Series.value_counts
Return a Series containing counts of unique values.
The resulting object will be in descending order so that the first element is the most frequently-occurring element. Excludes NA values by default
One Hot Encoding
# TODO: One-hot encode the 'features_log_minmax_transform' data using pandas.get_dummies()
features_final = pd.get_dummies(features_log_minmax_transform)
Use lambda function in Pandas
income = income_raw.apply(lambda x: 0 if x=='<=50K' else 1)
Neo4j
(Data Scientists) -[:LOVE]->(Neo4j)
nodes are in (), relationship is in [], colon : marks the label, -> is the direction
Publication pipeline
SageMaker Youtube shorts
Jobs
YC expo, startup expo jobs on Youtube live
Technical Interviews
O(n) is just m + m + m ... It is linear.
Growth Hacking
Youtube creators can now send messages to friends.
Wednesday, August 7, 2019
Udacity blockchain Blockchain Developer project list syllabus curriculum
Retrieved August 2019
- Create Your Identity on Bitcoin Core
- Create Your Own Private Blockchain
- Connect Private Blockchain to Front-End Client via APIs
- Secure Digital Assets on a Private Blockchain
- Build CryptoStar Dapp on Ethereum
- Architect a Blockchain Supply Chain Solution - Part A
- Architect a Blockchain Supply Chain Solution - Part B
Tuesday, August 6, 2019
Pytorch Cheat Sheet for Beginners and Udacity Deep Learning Nanodegree
A comprehensive impressive introduction to deep learning using Pytorch. Great for beginners
Pytorch Cheat Sheet for Beginners and Udacity Deep Learning Nanodegree
Pytorch Cheat Sheet for Beginners and Udacity Deep Learning Nanodegree
Learn Tensorflow 2.0
Tensorflow High Level API Keras
"tf.Keras which is Keras integrated as part of the TensorFlow core API. Keras continues as an independent open source project." Source-2
Keras is now a part of Tensorflow, no choice, no question of choice between tf.Keras and Tensorflow.
'No need for “Keras with TensorFlow as the backend” because Keras is now part of TensorFlow. You can continue to use Theano and CNTK etc. as Keras backend if you wish.' - Source-2
Estimator
Tensorflow Low Level API
Tensorflow in Different Languages
Python, JavaScript, Swift is supported.
Deploy to mobile Android, iOS, mobile web, Raspberry Pi,
Web
Training on CPU GPU TPU
Is TF.keras and stand-alone Keras the same?
The short answers is no. Tensorflow team has focused more on TF.keras, not all changes are ported over to Keras, which will have its own advocate and interest group. It is safe to say TF.keras is now a different flavor of Keras. The syntax remains similar between the two. Also Keras contains other libraries and modules and that are not to be integrated into Tensorflow. [Source 1: #AskTensorflow Youtube]
Lazy Evaluation to Eager Execution
Tensorflow 1.0 tf.layers went away in Tensorflow 2.0.
Sources:
"tf.Keras which is Keras integrated as part of the TensorFlow core API. Keras continues as an independent open source project." Source-2
Keras is now a part of Tensorflow, no choice, no question of choice between tf.Keras and Tensorflow.
'No need for “Keras with TensorFlow as the backend” because Keras is now part of TensorFlow. You can continue to use Theano and CNTK etc. as Keras backend if you wish.' - Source-2
![]() |
| Tensorflow 2.0 architecture, functions libraries Source-2 |
Estimator
Tensorflow Low Level API
Tensorflow in Different Languages
Python, JavaScript, Swift is supported.
Deploy to mobile Android, iOS, mobile web, Raspberry Pi,
Web
Training on CPU GPU TPU
Is TF.keras and stand-alone Keras the same?
The short answers is no. Tensorflow team has focused more on TF.keras, not all changes are ported over to Keras, which will have its own advocate and interest group. It is safe to say TF.keras is now a different flavor of Keras. The syntax remains similar between the two. Also Keras contains other libraries and modules and that are not to be integrated into Tensorflow. [Source 1: #AskTensorflow Youtube]
Lazy Evaluation to Eager Execution
Tensorflow 1.0 tf.layers went away in Tensorflow 2.0.
Sources:
- https://youtu.be/wGI_VtE9CJM
- https://medium.com/google-developer-experts/demystify-the-tensorflow-apis-57d2b0b8b6c0
Udacity Digital Marketing Nanodegree Review
Being a Udacity DMND alumna and mentor, I provide some insider view of the nanodegree. Bottomline: I would recommend Udacity Digital Marketing Nanodegree why? Read on.
Superb Exposure to Professional Software and Tech in Marketing
Udacity nanodegree gives practical and experiences, which actually includes a marketing spending on Facebook Ad and Google Ad. Students will get exposure to Moz, MailChimp, SEMrush (?), HubSpot, Facebook Ad, Google Ad, Google Page Speed, UTM tag builder, SEO auditing and more. You can read about these top digital marketing software and technology here on Medium. Given my personal professional growth and marketing experiences, this is really the golden list of must-know marketing technologies. Only a few are missing: Google Analytics, Unbounce, Buffer etc. It is important to note that Instagram Advertising is a part of Facebook Advertising.
One-on-One Technical Mentorship
A shameless plug here, experienced digital marketers, influencers and mentors like myself are on Udacity walking students through projects and how to evaluate campaigns one-on-one. That is valuable professional mentorship which is hard to get in an academic environment.
Insights into Udacity's Marketing Accounts
One hidden gem is to understand Udacity's marketing tactics and other students' marketing style by viewing and understanding what campaigns and ad sets are successful in the master marketing account. With hundreds to thousands of students running ad campaigns at the same time, this is a gold mine for natural experiment. For example, many students decided to pin their personas as a young female but clearly plenty of male leads click on Udacity ads. Which is an interesting insight.
Alternative Track Now Available - Bring your own project
When I attended the nanodegree, one had two choices advertise for Udacity DMND landing page or Udacity Blitz, now you can bring your own enterprise project or even personal business project. You will have to pay your own marketing budget though. Only the marketing budget for Udacity DMND landing page and ebook is included in the nanodegree cost.
Access to Ready-to-Use Professional Client Work Templates and Frameworks
I really wish I had all these ready-to-use highly polished decks, spreadsheets, worksheets when I did growth and consulting work. They really streamline the process, especially during the Request for Proposal (RFP) stage, when the clients are yet to commit and no revenue is flowing, any automation helps and saves costs.
Under-the-hood - a closer look into course work of the Udacity DMND
Check out this mentor-to-student FAQ documentation. See what is truly involved in the student work.
Superb Exposure to Professional Software and Tech in Marketing
Udacity nanodegree gives practical and experiences, which actually includes a marketing spending on Facebook Ad and Google Ad. Students will get exposure to Moz, MailChimp, SEMrush (?), HubSpot, Facebook Ad, Google Ad, Google Page Speed, UTM tag builder, SEO auditing and more. You can read about these top digital marketing software and technology here on Medium. Given my personal professional growth and marketing experiences, this is really the golden list of must-know marketing technologies. Only a few are missing: Google Analytics, Unbounce, Buffer etc. It is important to note that Instagram Advertising is a part of Facebook Advertising.
One-on-One Technical Mentorship
A shameless plug here, experienced digital marketers, influencers and mentors like myself are on Udacity walking students through projects and how to evaluate campaigns one-on-one. That is valuable professional mentorship which is hard to get in an academic environment.
Insights into Udacity's Marketing Accounts
One hidden gem is to understand Udacity's marketing tactics and other students' marketing style by viewing and understanding what campaigns and ad sets are successful in the master marketing account. With hundreds to thousands of students running ad campaigns at the same time, this is a gold mine for natural experiment. For example, many students decided to pin their personas as a young female but clearly plenty of male leads click on Udacity ads. Which is an interesting insight.
Alternative Track Now Available - Bring your own project
When I attended the nanodegree, one had two choices advertise for Udacity DMND landing page or Udacity Blitz, now you can bring your own enterprise project or even personal business project. You will have to pay your own marketing budget though. Only the marketing budget for Udacity DMND landing page and ebook is included in the nanodegree cost.
Access to Ready-to-Use Professional Client Work Templates and Frameworks
I really wish I had all these ready-to-use highly polished decks, spreadsheets, worksheets when I did growth and consulting work. They really streamline the process, especially during the Request for Proposal (RFP) stage, when the clients are yet to commit and no revenue is flowing, any automation helps and saves costs.
Under-the-hood - a closer look into course work of the Udacity DMND
Check out this mentor-to-student FAQ documentation. See what is truly involved in the student work.
Subscribe to:
Posts (Atom)
React UI, UI UX, Reactstrap React Bootstrap
React UI MATERIAL Install yarn add @material-ui/icons Reactstrap FORMS. Controlled Forms. Uncontrolled Forms. Columns, grid
-
Can hack schools solve Silicon Valley's talent crunch? The truth about coding bootcamps and the students left behind http://t.co/xXNfqN...
-
This review is updated continuously throughout the program. Yay I just joined the Udacity Nanodegree for Digital Marketing! I am such an Uda...
-
The bogus request from P2PU to hunt for HTML tags in real life has yielded a lot of good thoughts. My first impression was that this is stup...
