Showing posts with label Machine Learning. Show all posts
Showing posts with label Machine Learning. Show all posts

2020-09-15

2020-09-15 Tuesday - Nature Vol 585: Healthcare and Ambient Intelligence

 Illuminating the dark spaces of healthcare with ambient intelligence
Nature  |  Vol  585  |  10  September  2020 (p-193)
https://www.nature.com/articles/s41586-020-2669-y.pdf

"Advances in machine learning and contactless sensors have given rise to ambient intelligence—physical spaces that are sensitive and responsive to the presence of humans. Here we review how this technology could improve our understanding of the metaphorically dark, unobserved spaces of healthcare. In hospital spaces, early applications could soon enable more efficient clinical workflows and improved patient safety in intensive care units and operating rooms. In daily living spaces, ambient intelligence could prolong the independence of older individuals and improve the management of individuals with a chronic disease by understanding everyday behaviour. Similar to other technologies, transformation into clinical applications at scale must overcome challenges such as rigorous clinical validation, appropriate data privacy and model transparency. Thoughtful use of this technology would enable us to understand the complex interplay between the physical environment and health-critical human behaviours"

2019-07-02

2019-07-02 Tuesday - TensorFlow-2.0.0-beta1 MINST Demo

On Monday night, I upgraded my TensorFlow from the 2.0.0-alpha to 2.0.0-beta1

The documentation suggests:
"The best place to start is with the user-friendly Sequential API. Create models by plugging together building blocks. Run this “Hello World” example"

References:
My "Lab.ML" Github Repository folder: examples/TensorFlow/MINST_Demo/
...with sample output:


2019-05-28

2019-05-28 Tuesday - IPAM Workshop Lecture Videos

An incredibly deep and rich resource of workshop lecture videos on advanced Machine Learning topics:

Institute for Pure & Applied Mathematics (IPAM), An NSF Math Institute at UCLA

  • "IPAM was founded in 2000 by Mark Green, Tony Chan, and Eitan Tadmor as an NSF Mathematical Sciences Institute with a grant from the NSF Division of Mathematical Sciences.  "
  • "IPAM seeks to bring the full range of mathematical techniques to bear on the great scientific challenges of our time"
  • "IPAM is located in the heart of the UCLA campus, adjacent to the Mathematical Sciences Building and directly across from Moore Hall."
http://www.ipam.ucla.edu/programs/workshops/

2019-04-12

2019-04-12 Friday - Some Recent ImageNet ML Training Benchmarks

A few notes I've collected on recent ImageNet ML performance benchmark achievements - useful to help illustrate some architecture considerations - through a lens of infrastructure requirements - when trying to balance the potentially conflicting project constraints of accuracy/cost/performance.

This posting is a place-holder to provide a handy link for sharing some of those types of examples in the future.

Context:
2019:
  • New Technique Cuts AI Training Time By More Than 60 Percent
    • https://news.ncsu.edu/2019/04/new-technique-cuts-ai-training-time-by-more-than-60-percent/
      • "Adaptive Deep Reuse cut training time for AlexNet by 69 percent; for VGG-19 by 68 percent; and for CifarNet by 63 percent – all without accuracy loss."
      • "The paper, “Adaptive Deep Reuse: Accelerating CNN Training on the Fly,” will be presented at the 35th IEEE International Conference on Data Engineering, being held April 8-11 in Macau SAR, China. The work was done with support from the National Science Foundation under grant numbers CCF-1525609, CNS-1717425 and CCF-1703487." 
  • SenseTime Trains ImageNet/AlexNet In Record 1.5 minutes
    • https://medium.com/syncedreview/sensetime-trains-imagenet-alexnet-in-record-1-5-minutes-e944ab049b2c
      • "Researchers from Beijing-based AI unicorn SenseTime and Nanyang Technological University have trained ImageNet/AlexNet in a record-breaking 1.5 minutes, a significant 2.6 times speedup over the previous record of 4 minutes."
      • "...a single NVIDIA M40 GPU requires 14 days to complete 90-epoch ResNet-50 training"
      • "Researchers used 512 Volta GPUs for ImageNet/AlexNet training and achieved 58.2 percent accuracy in 1.5 minutes, with a corresponding training throughput of 1514.3k images/s and a 410.2 speedup ratio."
      • "The previous record was held by a Tencent Machine Learning (腾讯机智, Jizhi) team, which used 1024 GPUs to train AlexNet on the ImageNet dataset in 4 minutes.
2018:  
  • ImageNet Training in Minutes 
    • https://arxiv.org/abs/1709.05011
      • "Finishing 90-epoch ImageNet-1k training with ResNet-50 on a NVIDIA M40 GPU takes 14 days. This training requires 10^18 single precision operations in total. On the other hand, the world's current fastest supercomputer can finish 2 * 10^17 single precision operations per second (Dongarra et al 2017, this https URL). If we can make full use of the supercomputer for DNN training, we should be able to finish the 90-epoch ResNet-50 training in one minute. However, the current bottleneck for fast DNN training is in the algorithm level. Specifically, the current batch size (e.g. 512) is too small to make efficient use of many processors. For large-scale DNN training, we focus on using large-batch data-parallelism synchronous SGD without losing accuracy in the fixed epochs. The LARS algorithm (You, Gitman, Ginsburg, 2017, arXiv:1708.03888) enables us to scale the batch size to extremely large case (e.g. 32K). We finish the 100-epoch ImageNet training with AlexNet in 11 minutes on 1024 CPUs. About three times faster than Facebook's result (Goyal et al 2017, arXiv:1706.02677), we finish the 90-epoch ImageNet training with ResNet-50 in 20 minutes on 2048 KNLs without losing accuracy. State-of-the-art ImageNet training speed with ResNet-50 is 74.9% top-1 test accuracy in 15 minutes. We got 74.9% top-1 test accuracy in 64 epochs, which only needs 14 minutes. "  
  • Now anyone can train Imagenet in 18 minutes
    • https://www.fast.ai/2018/08/10/fastai-diu-imagenet/ 
      • "...train Imagenet to 93% accuracy in just 18 minutes, using 16 public AWS cloud instances, each with 8 NVIDIA V100 GPUs, running the fastai and PyTorch libraries. This is a new speed record for training Imagenet to this accuracy on publicly available infrastructure, and is 40% faster than Google’s DAWNBench record on their proprietary TPU Pod cluster. Our approach uses the same number of processing units as Google’s benchmark (128) and costs around $40 to run."
  • Accurate, Large Minibatch SGD: Training ImageNet in 1 Hour 
    • https://arxiv.org/pdf/1706.02677.pdf
      • "In this paper, we empirically show that on the ImageNet dataset large minibatches cause optimization difficulties, but when these are addressed the trained networks exhibit good generalization. Specifically, we show no loss of accuracy when training with large minibatch sizes up to 8192 images. To achieve this result, we adopt a hyperparameter-free linear scaling rule for adjusting learning rates as a function of minibatch size and develop a new warmup scheme that overcomes optimization challenges early in training. With these simple techniques, our Caffe2-based system trains ResNet-50 with a minibatch size of 8192 on 256 GPUs in one hour, while matching small minibatch accuracy. Using commodity hardware, our implementation achieves ∼90% scaling efficiency when moving from 8 to 256 GPUs."
2015: 

Additional Useful Resources/References:



Other Interesting Articles:

2018:

2019-03-28

2019-03-28 Thursday - TensorFlow-2.0.0-alpha (TF 2.0 Alpha)


Today I spotted Cassie Kozyrkov's article on Hackernoon (she's Chief Decision Scientist at Google, Inc) :



Here are some of the relevant 2.0 documentation resources
    • $ pip install tensorflow==2.0.0-alpha0

35 videos from the TensorFlow Dev Summit 2019 (March 6th and 7th at the Google Event Center in Sunnyvale, CA.), touching specifically on TF 2.0, are available here:

TensorFlow Youtube Channel



I also took a moment to upgrade to the recent Python 3.7.3 release (from 3.7.2)
  

2019-02-13

2019-02-13 Wednesday - Homomorphic Encryption

An interesting discussion arose in the last week, which introduced me to the concepts of using Homomorphic Encryption in machine learning solutions.



https://en.wikipedia.org/wiki/Homomorphic_encryption


IBM's Blindfolded Calculator 

A very casual introduction to Fully Homomorphic Encryption


Encrypt your Machine Learning
How Practical is Homomorphic Encryption for Machine Learning?



A FULLY HOMOMORPHIC ENCRYPTION SCHEME 
  • A DISSERTATION SUBMITTED TO THE DEPARTMENT OF COMPUTER SCIENCE AND THE COMMITTEE ON GRADUATE STUDIES OF STANFORD UNIVERSITY IN PARTIAL FULFILLMENT OF THE REQUIREMENTS FOR THE DEGREE OF DOCTOR OF PHILOSOPHY
  • Craig Gentry, September 2009


A brief survey of Fully Homomorphic Encryption, computing on encrypted data


Homomorphic EncryptionShai Halevi (IBM Research)April 2017
"Fully  homomorphic  encryption  (FHE)  has  been  called  the  “Swiss  Army  knife  of  cryptog-raphy”,  since  it  provides  a  single  tool  that  can  be  uniformly  applied  to  many  cryptographicapplications.  In this tutorial we study FHE and describe its different properties, relations withother concepts in cryptography, and constructions.  We briefly discuss the three generations ofFHE constructions since Gentry’s breakthrough result in 2009,  and cover in detail the third-generation scheme of Gentry, Sahai, and Waters (GSW)"

Fully Homomorphic Encryption: Cryptography’s Holy Grail 

Cryptology ePrint Archive: Report 2015/1192
A Guide to Fully Homomorphic Encryption

2019-01-07

2019-01-07 Monday - TensorSpace.js Experiments


My side project experimentation efforts this week will focus on exploring v0.3 of the TensorSpace.js visualization library 

Neural network 3D visualization framework, build interactive and intuitive model in browsers, support pre-trained deep learning models from TensorFlow, Keras, TensorFlow.js

Installation

  • npm install tensorspace

References:

Articles

2018-11-20

2018-11-20 Tuesday - Machine Learning Technical Debt and Anti-Patterns

This posting is a placeholder for links to interesting articles/papers that touch on technical debit and anti-patterns in Machine Learning algorithms/models/solutions.

Hidden Technical Debt in Machine Learning Systems
https://papers.nips.cc/paper/5656-hidden-technical-debt-in-machine-learning-systems.pdf
"Machine learning offers a fantastically powerful toolkit for building useful complex prediction systems quickly. This paper argues it is dangerous to think of these quick wins as coming for free. Using the software engineering framework of technical debt, we find it is common to incur massive ongoing maintenance costs in real-world ML systems. We explore several ML-specific risk factors to account for in system design. These include boundary erosion, entanglement, hidden feedback loops, undeclared consumers, data dependencies, configuration issues, changes in the external world, and a variety of system-level anti-patterns."

A  Convex Framework for Fair Regression


"The widespread use of machine learning to make consequential decisions about individual citizens (including in domains such as...criminal sentencing has been accompanied by increased reports of instances in which the algorithms and models employed can be unfair or discriminatory in a variety of ways ...we introduce a rich family of fairness metrics for regression models that take the form of a fairness regularizer and apply them to the standard loss functions for linear and logistic regression." 
"Since these loss functions and our fairness regularizer are convex, the combined objective functions obtained from our framework are also convex, and thus permit efficient optimization. Furthermore, our family of fairness metrics covers the spectrum from the type of group fairness that is common in classification formulations (where e.g. false arrests in one racial group can be “compensated” for by false arrests in another racial group) to much stronger notions of individual fairness (where such cancellations are forbidden, and every injustice is charged to the model). Intermediate fairness notions are also covered. Our framework also permits one to either forbid the use of a "protected” variable (such as race), by demanding that a single model be learned across all groups, or to build different group-dependent models." 
"Most importantly, by varying the weight on the fairness regularizer, our framework permits us to compute the entire “Pareto curve” or efficient frontier of the trade-off between predictive accuracy and fairness.  Such curves are especially important to examine and understand in a domain-specific manner: since demanding fairness of models will always come at a cost of reduced predictive accuracy , it behooves practitioners working with fairness-sensitive data sets to understand just how mild or severe this trade-off is in their particular arena, permitting them to make informed modeling and policy decisions""...in this work we have studied a variety of fairness regularizers for regression problems, and applied them to data sets in which fairness is not subservient to generalization, but is instead a first-order consideration. Our empirical study has demonstrated that the choice of fairness regularizer (group, individual, hybrid, or other) and the particular data set can have qualitative effects on the trade-off between accuracy and fairness...." 
"The Communities and Crime dataset, from the UCI repository is a dataset which includes many features deemed relevant to violent crime rates (such as the percentage of the community’s population in an urban area, the community’s racial makeup, law enforcement involvement and racial makeup of that law enforcement in a community, amount a community’s law enforcement allocated to drug units) for different communities. This data is provided to train regression models based on this data to predict the amount of violent crime (murder, rape, robbery, and assault) in a given community...." 
"The COMPAS dataset The COMPAS dataset contains data from Broward County, Florida originally compiled by ProPublica in which the goal is to predict whether a convicted individual would commit a violent crime in the following two years or not. ..." 

2018-10-09

2018-10-09 Tuesday - Early Access: Model Based Machine Learning (book)


http://mbmlbook.com/
by John Winn and Christopher Bishop, with Thomas Diethe, John Guiver and Yordan Zaykov

2018-07-07

2018-07-07 Saturday - Researching BigDL Machine Learning Framework

Preparing my reading list to do a deep dive in BigDL:


References:

Talks:

Articles:

2018-07-07 Saturday - fastText for Text Classification

I'm doing some focused reading this weekend to investigate the relative performance of Machine Learning frameworks leveraging GPU vs CPU implementations - and whether there are cases in which a distributed CPU approach may have an advantage over a GPU approach. 

 This 2016 paper (using fastText, for text classification problems) by a Facebook AI Research (AIR) team (Armand Joulin, Eduourd Grave, Piotr Bojanowski, Thomas Mikolov) achieved some startling results that may be of interest to others.

Bag of Tricks for Efficient Text Classification
https://arxiv.org/abs/1607.01759
"This paper explores a simple and efficient baseline for text classification. Our experiments show that our fast text classifier fastText is often on par with deep learning classifiers in terms of accuracy, and many orders of magnitude faster for training and evaluation. We can train fastText on more than one billion words in less than ten minutes using a standard multicore~CPU, and classify half a million sentences among~312K classes in less than a minute."  


https://fasttext.cc/
"FastText is an open-source, free, lightweight library that allows users to learn text representations and text classifiers. It works on standard, generic hardware. Models can later be reduced in size to even fit on mobile devices."

Implementing Deep Learning Methods and Feature Engineering for Text Data: FastText
https://www.kdnuggets.com/2018/05/implementing-deep-learning-methods-feature-engineering-text-data-fasttext.html

2016-08-10

2016-08-10 Wednesday - MonkeyLearn.com Machine Learning Tutorials


In the most recent O'Reilly Media Data Newsletter - there is a link to an interesting Machine Learning tutorial (using the MonkeyLearn platform - which has a free tier of usage)
https://blog.monkeylearn.com/machine-learning-1m-hotel-reviews-finds-interesting-insights/


https://github.com/monkeylearn/hotel-review-analysis

2016-04-30

2016-04-30 Saturday - Suggested Machine Learning Books

On the recommendation of a friend, I've ordered a book today:

Understanding Machine Learning: From Theory to Algorithms, 1st Edition, Cambridge University Press
by Shai Shalev-Shwartz and Shai Ben-David
http://www.amazon.com/Understanding-Machine-Learning-Theory-Algorithms/dp/1107057132


Also, I've ordered this one too...

Foundations of Machine Learning (Adaptive Computation and Machine Learning series, MIT Press)
by Mehryar Mohri, Afshin Rostamizadeh, and Ameet Talwalkar
http://www.amazon.com/Foundations-Machine-Learning-Adaptive-Computation/dp/026201825X

2016-04-20

2016-04-20 Wednesday - Exploring Apache SINGA 0.3.0, A General Distributed Deep Learning Platform

Exploring today's Apache SINGA 0.3.0 release, A General Distributed Deep Learning Platform
http://singa.apache.org/docs/overview.html
"SINGA is a general distributed deep learning platform for training big deep learning models over large datasets. It is designed with an intuitive programming model based on the layer abstraction. A variety of popular deep learning models are supported, namely feed-forward models including convolutional neural networks (CNN), energy models like restricted Boltzmann machine (RBM), and recurrent neural networks (RNN). Many built-in layers are provided for users. SINGA architecture is sufficiently flexible to run synchronous, asynchronous and hybrid training frameworks. SINGA also supports different neural net partitioning schemes to parallelize the training of large models, namely partitioning on batch dimension, feature dimension or hybrid partitioning."

2016-03-30

2016-03-30 Wednesday - Kaggle CEO, Anthony Goldbloom, Seattle Talk April 5th

Tuesday, April 5th, Anthony Goldbloom, Co-Founder and CEO of Kaggle will
give a talk in Seattle "Machine learning with R on Kaggle"
http://www.meetup.com/Seattle-useR/events/229965398/?fromEmail=229965398&rv=ea1

2015-11-14

2015-11-14 Saturday - Reading Source Code: Google's TensorFlow

TensorFlow is an Open Source Software Library for Machine Intelligence

I'm spending some time this weekend reading through the source code for Google's TensorFlow
https://github.com/tensorflow/tensorflow


http://www.tensorflow.org/
"TensorFlow™ is an open source software library for numerical computation using data flow graphs. Nodes in the graph represent mathematical operations, while the graph edges represent the multidimensional data arrays (tensors) communicated between them. The flexible architecture allows you to deploy computation to one or more CPUs or GPUs in a desktop, server, or mobile device with a single API. TensorFlow was originally developed by researchers and engineers working on the Google Brain Team within Google's Machine Intelligence research organization for the purposes of conducting machine learning and deep neural networks research, but the system is general enough to be applicable in a wide variety of other domains as well."


Some recent news stories about TensorFlow
Tutorials



WordCount

Copyright

© 2001-2026 International Technology Ventures, Inc., All Rights Reserved.