avatarDr John Frederick Rose

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

7762

Abstract

0744">I only use open-source software. You should make sure your PC, laptop or Mac has enough guts to support AI programming. Also, although it’s not needed when you are starting, give some consideration to GPU hardware acceleration (I like <a href="undefined">Jason Dsouza</a>’s article — see below).</p><p id="8d31">I am assuming you know enough about Python to do some coding — not at an expert level, but more at a “get the job done” level. If you want some self-learning in python:</p><div id="22ff" class="link-block"> <a href="https://www.python.org/doc/"> <div> <div> <h2>Welcome to Python.org</h2> <div><h3>The official home of the Python Programming Language</h3></div> <div><p>www.python.org</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*ho5IQqoN08jFinSN)"></div> </div> </div> </a> </div><p id="d45a">If you want to try your hand at coding examples and applications in AI then I suggest that it’s a good idea to install <i>Anaconda Individual Edition</i>. Anaconda is a widely used, open source, data science analytics platform. Anaconda will take care of hair-tearing-out tasks like version control. Comes with Python.</p><div id="15ec" class="link-block"> <a href="https://docs.anaconda.com/anaconda/"> <div> <div> <h2>Anaconda Individual Edition — Anaconda documentation</h2> <div><h3>Anaconda® is a package manager, an environment manager, a Python/R data science distribution, and a collection of over…</h3></div> <div><p>docs.anaconda.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/)"></div> </div> </div> </a> </div><div id="1a10" class="link-block"> <a href="https://towardsdatascience.com/what-is-a-gpu-and-do-you-need-one-in-deep-learning-718b9597aa0d"> <div> <div> <h2>What is a GPU and do you need one in Deep Learning?</h2> <div><h3>In Deep Learning, everyone seems to recommend using a GPU. What is it, can you do without one, and who is it exactly…</h3></div> <div><p>towardsdatascience.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*ugfDFEAZuHuVzMTL)"></div> </div> </div> </a> </div><h2 id="5806">AI-Libraries.</h2><p id="675d">These are the AI libraries that I have experience in using and teaching. I’ve included tutorial links and there is documentation on how to load in Anaconda.</p><h2 id="c02c">1. Scikit-learn.</h2><p id="fdce">I highly recommend this library if you want to just get a basic understanding and see how AI works. <b>scikit-learn comes installed with Anaconda.</b> The exercise I really love is an example of classifying flowers using the <a href="https://scikit-learn.org/stable/tutorial/basic/tutorial.html">Iris introductory exercise</a> in scikit-learn. I use the Iris example in my first class session to show students how useful AI can be. The data is simple enough to allow you to manually sort through the Irises to see why AI is popular.</p><div id="b3bd" class="link-block"> <a href="https://scikit-learn.org/stable/"> <div> <div> <h2>scikit-learn</h2> <div><h3>“We use scikit-learn to support leading-edge basic research […]” “I think it’s the most well-designed ML package I’ve…</h3></div> <div><p>scikit-learn.org</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*X9iO-LTaPh7diudQ)"></div> </div> </div> </a> </div><div id="f987" class="link-block"> <a href="https://scikit-learn.org/stable/tutorial/index.html"> <div> <div> <h2>scikit-learn Tutorials</h2> <div><h3>Note Doctest Mode The code-examples in the above tutorials are written in a python-console format. If you wish to…</h3></div> <div><p>scikit-learn.org</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*ABlH7vn9ErF_owt0)"></div> </div> </div> </a> </div><div id="e2b3" class="link-block"> <a href="https://anaconda.org/anaconda/scikit-learn"> <div> <div> <h2>Scikit Learn :: Anaconda.org</h2> <div><h3>Edit description</h3></div> <div><p>anaconda.org</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/)"></div> </div> </div> </a> </div><div id="4a08" class="link-block"> <a href="https://scikit-learn.org/stable/tutorial/basic/tutorial.html"> <div> <div> <h2>An introduction to machine learning with scikit-learn</h2> <div><h3>Section contents In this section, we introduce the machine learning vocabulary that we use throughout scikit-learn and…</h3></div> <div><p>scikit-learn.org</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*YRPicQ6oCNVbzG5x)"></div> </div> </div> </a> </div><h2 id="1cf5">2. TensorFlow (Deep Learning).</h2><p id="c337">I used TensorFlow in my consulting work running in a dedicated Anaconda environment. I can’t recommend Keras enough, especially when learning TensorFlow.</p><div id="2da2" class="link-block"> <a href="https://keras.io/api/"> <div> <div> <h2>Keras documentation: Keras API reference</h2> <div><h3>Keras documentation</h3></div> <div><p>: Keras API reference Keras documentationkeras.io</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*j0ORT0PQlba5NS7r)"></div> </div> </div> </a> </div><div id="2ec6" class="link-block"> <a href="https://en.wikipedia.org/wiki/TensorFlow"> <div> <div> <h2>TensorFlow — Wikipedia</h2> <div><h3>TensorFlow is a free and open-source software library for machine learning and artificial intelligence. It can be used…</h3></div> <div><p>en.wikipedia.org</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*MvPiREDMYcVa6w9f)"></div> </div> </div> </a> </div><div id="1d68" class="link-block"> <a href="https://www.tensorflow.org/tutorials"> <div> <div> <h2>Tutorials | TensorFlow Core</h2> <div><h3>Complete, end-to-end examples to learn how to use TensorFlow for ML beginners and experts. Try tutorials in Google…</h3></div> <div><p>www.tensorflow.org</p></div> </div> <div> <di

Options

v style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*L_LE9MLFo1pHUBwl)"></div> </div> </div> </a> </div><div id="d245" class="link-block"> <a href="https://docs.anaconda.com/anaconda/user-guide/tasks/tensorflow/"> <div> <div> <h2>TensorFlow — Anaconda documentation</h2> <div><h3>Anaconda makes it easy to install TensorFlow, enabling your data science, machine learning, and artificial intelligence…</h3></div> <div><p>docs.anaconda.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/)"></div> </div> </div> </a> </div><h2 id="665b">3. Pytorch (Deep Learning).</h2><p id="99d2">I like the looks of PyTorch, but have not had a great deal of experience with it.</p><div id="cc4d" class="link-block"> <a href="https://pytorch.org/"> <div> <div> <h2>PyTorch</h2> <div><h3>Pushing the state of the art in NLP and Multi-task learning. Using PyTorch’s flexibility to efficiently research new…</h3></div> <div><p>pytorch.org</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*DGUZpon0mrDSdTgM)"></div> </div> </div> </a> </div><div id="4f32" class="link-block"> <a href="https://pytorch.org/tutorials/"> <div> <div> <h2>Welcome to PyTorch Tutorials — PyTorch Tutorials 1.10.1+cu102 documentation</h2> <div><h3>Join the PyTorch developer community to contribute, learn, and get your questions answered.</h3></div> <div><p>pytorch.org</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*cW0hW9XyftCsr5At)"></div> </div> </div> </a> </div><div id="c198" class="link-block"> <a href="https://anaconda.org/pytorch/pytorch"> <div> <div> <h2>Pytorch :: Anaconda.org</h2> <div><h3>PyTorch is an optimized tensor library for deep learning using GPUs and CPUs.</h3></div> <div><p>anaconda.org</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/)"></div> </div> </div> </a> </div><h2 id="b16d">Readings</h2><div id="8ecc" class="link-block"> <a href="https://en.wikipedia.org/wiki/Dartmouth_workshop"> <div> <div> <h2>Dartmouth workshop - Wikipedia</h2> <div><h3>Venue Dartmouth College, Hanover, New Hampshire Organised by John McCarthy Participants Marvin Minsky, Nathaniel…</h3></div> <div><p>en.wikipedia.org</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*wDMhdW7w2FANGkTW)"></div> </div> </div> </a> </div><div id="d080" class="link-block"> <a href="https://en.wikipedia.org/wiki/Artificial_intelligence"> <div> <div> <h2>Artificial intelligence - Wikipedia</h2> <div><h3>Artificial intelligence ( AI) is intelligence demonstrated by machines, as opposed to natural intelligence displayed by…</h3></div> <div><p>en.wikipedia.org</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*JHbq694UAMQ5JBQq)"></div> </div> </div> </a> </div><div id="1d8e" class="link-block"> <a href="https://en.wikipedia.org/wiki/Knowledge_engineering"> <div> <div> <h2>Knowledge engineering - Wikipedia</h2> <div><h3>Knowledge engineering ( KE) refers to all technical, scientific and social aspects involved in building, maintaining…</h3></div> <div><p>en.wikipedia.org</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/)"></div> </div> </div> </a> </div><div id="ac43" class="link-block"> <a href="https://en.wikipedia.org/wiki/Turing_test"> <div> <div> <h2>Turing test - Wikipedia</h2> <div><h3>The Turing test, originally called the imitation game by Alan Turing in 1950, is a test of a machine's ability to…</h3></div> <div><p>en.wikipedia.org</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*51V8aT0l8Kz6HIlv)"></div> </div> </div> </a> </div><div id="73b3" class="link-block"> <a href="https://en.wikipedia.org/wiki/Backpropagation"> <div> <div> <h2>Backpropagation - Wikipedia</h2> <div><h3>In machine learning, backpropagation ( backprop, BP) is a widely used algorithm for training feedforward neural…</h3></div> <div><p>en.wikipedia.org</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*WLUZD9DH3opV4p0C)"></div> </div> </div> </a> </div><div id="752f" class="link-block"> <a href="https://en.wikipedia.org/wiki/Reductionism"> <div> <div> <h2>Reductionism - Wikipedia</h2> <div><h3>Reductionism is any of several related philosophical ideas regarding the associations between phenomena, which can be…</h3></div> <div><p>en.wikipedia.org</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*ge3kR8XEyjMqSpYF)"></div> </div> </div> </a> </div><div id="a877" class="link-block"> <a href="https://readmedium.com/mind-as-a-complex-adaptive-system-92ff0bc2fc40"> <div> <div> <h2>Mind as a Complex Adaptive System.</h2> <div><h3>Thoughts and Overview of Complexity Research into Our Mind.</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*S8YgXDEh4HynDog5ku-RXw.jpeg)"></div> </div> </div> </a> </div><div id="d0e5" class="link-block"> <a href="https://readmedium.com/dr-john-rose-and-technology-63acf2505dcc"> <div> <div> <h2>Dr John Rose and Technology.</h2> <div><h3>Technologies I have Studied, Researched and Used.</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*XS5LeOMJp0z44I6VRt2rbw.jpeg)"></div> </div> </div> </a> </div></article></body>

What is AI Really? Want to Try AI?

Understand AI and see how it works. Form your own opinion.

Hey, I tripped…. Again! Photo by Rudi Endresen on Unsplash

Genesis.

AI has been around since 1956 and has gone through several boom and bust phases. It is only recently that PC based platforms have become powerful enough to support the intensive computational load demanded by AI libraries like TensorFlow, scikit-learn, and Pytorch. With my PC I can now explore AI, form my own opinions, and ignore all the hype and misinformation. It’s an excuse to have fun!

When I morphed from a grumpy systems architect to a grumpy lecturer I put together some introductory AI sessions for my students. This story builds upon and summarises some of my presentations. Being who I am, I added in links to AI tools and libraries including getting stated tutorials and setup guides. Try things out yourself!

1956 Birth of AI

Mystified by AI or perhaps just ignoring it? Maybe you have read about killer robots or totalitarian regimes controlling minds? Misinformation, hype and ignorance abound. Let’s start the cure and look at the original definition of “Artificial Intelligence”.

The term Artificial Intelligence (AI) was coined at a 6 week summer Dartmouth College workshop in 1956. The proposal for the workshop stated that a “study of artificial intelligence be carried out during the summer of 1956 at Dartmouth College in Hanover, New Hampshire. The study is to proceed on the basis of the conjecture that every aspect of learning or any other feature of intelligence can in principle be so precisely described that a machine can be made to simulate it”.

“Simulate” and “Precisely Described”.

Simulation is the keyword to overcoming all the hype. AI does not have an objective to create intelligence but rather to “simulate it”. The success of the simulation depends upon the precision of the description of human intelligence and the method adopted for validating the simulation.

The Turing test

The Turing Test dating to 1950 was adopted as an early validation technique. The idea is that a human judge would observe conversations between a human and a machine designed to generate human-like responses. If the judge could not tell the difference between human and machine, then the simulation would be considered valid. The Turing test and its variants are still the subjects of much controversy.

The problem with “Precisely Described”.

The phrase “precisely described” implies a reductionist approach to the study of intelligence. However, modern research shows intelligence emerges from the complex electro-chemical interactions between the brain’s neurons. In this view, the brain is a complex adaptive system. Reductionism fails because the emergent properties such as intelligence cannot be reduced. In other words, the properties at a given scale cannot be described in terms of properties at a lower scale.

Complexity theory explains why after nearly 70 years of intensive research booms and busts the optimism of the 1956 participants has not been realised. Furthermore, the phrase “Artificial Intelligence” has been shown to be a misnomer, but the term has been popularised to such a degree that it’s here to stay.

Despite the failure to explain general intelligence, the mathematical tools developed as subsets of AI are extremely useful and now underpin our modern interconnected society. These “learning” tools are excellent for problems involving pattern matching.

The Tools of AI: Machine Learning and Deep Learning

While “Artificial Intelligence” (AI) is concerned with the simulation of human intelligence, the commercially successful tools of AI research focus on data parsing and pattern matching. Together these tools are referred to as “Machine Learning”. Deep Learning is a subset of Machine Learning.

Machine Learning has been widely deployed in fields including facial recognition; cargo distribution; sales and marketing; climate science; social media; and financial trading. Machine Learning algorithms can be implemented in many applications without the need for changing any code. Instead, standard sets of labelled data are used to train its algorithms to recognise desired patterns. These “trained” algorithms can then be applied to new datasets to discover the desired patterns.

The issues with machine learning stem from the design of the training sets. If the training sets are too small or omit vital patterns then they will have poor accuracy and likely to miss-categorise outcomes.

Artificial Neural Networks

Artificial Neural Networks were designed to mimic the electrical interactions between neurons of the human brain (ignoring the vital role of chemical components). The explanation of the relationship between the mathematical tools and the brain’s structure and function are tenuous at best. However, these tools are useful, valuable and in constant development.

In Machine Learning, the set of ANN algorithms consist of three levels: input, parsing and output. The term Deep Learning is applied when a neural network has more than three layers. Some of the modern Deep Learning neural networks have many thousands of layers (refer to Pytorch and Tensorflow). Every deep learning layer can be optimised through a technique called backpropagation.

Backpropagation gives Deep Learning the ability to independently learn and make decisions on pattern recognition. That is, there is no need to prepare training data and its time-consuming classification (labelling) requirements. Deep Learning does require stringent management of data quality, (fitness for purpose) and careful validation of results (can they be explained?). Incremental Learning is a technique for for preparing Deep Learning algorithms.

The AI technologies of Deep Learning are now main-stream tools in IT applications. The European Union has recognised and mandated benchmarks to prove AI products comply with strict ethical and legal standards extant in Europe.

Getting Started with AI: Learn by Doing.

I only use open-source software. You should make sure your PC, laptop or Mac has enough guts to support AI programming. Also, although it’s not needed when you are starting, give some consideration to GPU hardware acceleration (I like Jason Dsouza’s article — see below).

I am assuming you know enough about Python to do some coding — not at an expert level, but more at a “get the job done” level. If you want some self-learning in python:

If you want to try your hand at coding examples and applications in AI then I suggest that it’s a good idea to install Anaconda Individual Edition. Anaconda is a widely used, open source, data science analytics platform. Anaconda will take care of hair-tearing-out tasks like version control. Comes with Python.

AI-Libraries.

These are the AI libraries that I have experience in using and teaching. I’ve included tutorial links and there is documentation on how to load in Anaconda.

1. Scikit-learn.

I highly recommend this library if you want to just get a basic understanding and see how AI works. scikit-learn comes installed with Anaconda. The exercise I really love is an example of classifying flowers using the Iris introductory exercise in scikit-learn. I use the Iris example in my first class session to show students how useful AI can be. The data is simple enough to allow you to manually sort through the Irises to see why AI is popular.

2. TensorFlow (Deep Learning).

I used TensorFlow in my consulting work running in a dedicated Anaconda environment. I can’t recommend Keras enough, especially when learning TensorFlow.

3. Pytorch (Deep Learning).

I like the looks of PyTorch, but have not had a great deal of experience with it.

Readings

AI
Ai Programming
Ai Tutorial
Illumination
Teaching Computer Science
Recommended from ReadMedium