• Stars
    star
    927
  • Rank 49,282 (Top 1.0 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created over 11 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Artificial Intelligence for Humans

Artificial Intelligence for Humans - Code Examples

These examples are part of a series of books that is currently under development. Check the above website to see which volumes have been completed and are available. The planned list is shown here. The following volumes are planned for this series:

  • Volume 0: Introduction to the Math of AI
  • Volume 1: Fundamental Algorithms
  • Volume 2: Nature Inspired Algorithms
  • Volume 3: Neural Networks and Deep Learning

Questions?

If you have a question, or wish to discuss something related to these books, you can find my Google Group here:

https://groups.google.com/forum/#!forum/jeffheatons-ai-group

Staying Up to Date

This appendix describes how to obtain the “Artificial Intelligence for Humans” (AIFH) book series examples. This is probably the most dynamic area of the book. Computer languages are always changing and adding new versions. I will update the examples as this becomes necessary. There are also bugs and corrections. You are encouraged to always make sure you are using the latest version of the book examples.
Because this area is so dynamic, this file may have become out of date. You can always find the latest version of this file at the following location.

https://github.com/jeffheaton/aifh

This book’s examples are provided in a number of computer programming languages. Core example packs are provided for Java, C#, C/C++, Python and R for most volumes. The community may have added other languages as well. All examples can be found at the GitHub repository.

Download ZIP File

Github provides an icon that allows you to simply download a ZIP file that contains all of the example code for the series. A single ZIP file is used to contain all of the examples for the series. Because of this, the contents of this ZIP are frequently updated. If you are starting a new volume, it is very important that you make sure you have the latest copy. The download can be performed from the following URL.

https://github.com/jeffheaton/aifh

You can see the download link in Figure 1.

Figure 1: GitHub

Image

Clone the Git Repository

All examples can be obtained using the source control program git, if it is installed on your system. The following command clones the examples to your computer. Cloning simply refers to the process of copying the example files.

git clone https://github.com/jeffheaton/aifh.git

You can also pull the latest updates using the following command.

git pull

If you would like an introduction to git refer to the following URL.

http://git-scm.com/docs/gittutorial

Example Contents

The entire “Artificial Intelligence for Humans” series is contained in one download. This download is a zip file. Once you open the examples file you will see the contents see in Figure 2.

Figure 2: Examples Download

Image

The license file describes the license used for the book examples. All of the examples for this series are released under the Apache 2 License license. This is a Free and open-source software (FOSS) license. This means that I do retain a copyright to the files. However, you can freely reuse these files in both commercial and non-commercial projects without further permission. While the book source code is provided free, the book text is not provided free. These books are commercial products that I sell through a variety of means. You may not redistribute the actual books. This includes the PDF, MOBI, EPUB and any other format the book might be converted to. I do, however, provide all books in DRM-free form. Your support of this policy is greatly appreciated and does contribute to the future growth of these books. There are also two README files included in the download. The README.md is a “markdown” file that contains images and formatting. The README.txt file is plane text. Both files contain the same information. For more information on MD files, refer to the following URL.

https://help.github.com/articles/github-flavored-markdown

You will find README files at several levels of the examples download. The README file contained in the examples root (seen above) contains information about the book series.
You will also notice the individual volume folders contained in the download. These are named vol1, vol2, etc. You may not see all of the volumes in the download. Not all of the volumes have been written yet! All of the volumes have the same format. For example, if you were to open Volume 1, you would see the contents listed in Figure 3.

Figure 3: Inside Volume 1

Image

Again, you see the two README files. These files contain information unique to this particular volume. The most important information contained in the volume level README files is the current status of the examples. The community often contributes example packs. This means that some of the example packs may not be complete. The README for the volume will let you know this important information. The volume README.also contains the errata and FAQ for a volume. You should also see a file named “chart.R”. This file contains the source code that I used to create many of the charts in the book. I use the R programming language to produce nearly all graphs and charts seen in the book. This allows you to see the equations behind the pictures. I do not translate this file to other programming languages. R is simply what I use in the production of the book. If I used another language, like Python, to produce some of the charts, you would see a “chart.py” along with the R code. You can see that the above volume contains examples for C, C#, Java, Python and R. These are the core languages that I try to always ensure complete examples for. However, you may see other languages added. Again, always check the README file for the latest information on language translations. Figure 4 shows the contents of a typical language pack.

Figure 4: The Java Language Pack

Image

Notice the README files again? The README files inside of a language folder are VERY important. Inside the above two README files you will find information about using the examples with Java. If you are having trouble using the book’s examples with a particular language, the README file should be your first stop. The other files seen above are all unique to Java. The README file above describes these in much greater detail. Contributing to the Project Do you want to translate the examples to a new language? Have you found something broken, misspelled, or otherwise botched? You probably have. Fork the project and push a commit revision to GitHub. You will be credited among the growing number of contributors.
The process begins with a fork. You create an account on GitHub and fork the AIFH project. This creates a new project, with a copy of the AIFH files. You will then clone your new for, in a similar way as was described for cloning the main AIFH repositiory. Once you make your changes you submit a “pull request”. Once I get this request I will evaluate your changes/additions and merge it with the main project. A much more detailed article on contributing through GitHub can be found here.

https://help.github.com/articles/fork-a-repo

Getting Help

Citations

If you would like to cite Volume 1: please use:

Bibtex:

@book{Heaton13a,
	Author = {Jeff Heaton},
	Title = {Artificial Intelligence for Humans, Volume 1: Fundamental Algorithms},
	Publisher = {CreateSpace Independent Publishing Platform},
	Year = {2013},
	ISBN = {1493682229}
}

Endnote:

%0 Book
%T Artificial Intelligence for Humans, Volume 1: Fundamental Algorithms
%A Heaton, J.
%N v. 1
%@ 9781493682225
%D 2013
%I CreateSpace Independent Publishing Platform

If you would like to cite Volume 2: please use:

Bibtex:

@book{Heaton14a,
	Author = {Jeff Heaton},
	Title = {Artificial Intelligence for Humans, Volume 2: Nature Inspired Algorithms},
	Publisher = {CreateSpace Independent Publishing Platform},
	Year = {2014},
	ISBN = {1499720572}
}

Endnote:

%0 Book
%T Artificial Intelligence for Humans, Volume 2: Nature Inspired Algorithms
%A Heaton, J.
%N v. 1
%@ 1499720572
%D 2014
%I CreateSpace Independent Publishing Platform

More Repositories

1

t81_558_deep_learning

T81-558: Keras - Applications of Deep Neural Networks @Washington University in St. Louis
Jupyter Notebook
5,720
star
2

encog-java-core

Java
742
star
3

encog-dotnet-core

C#
429
star
4

app_deep_learning

T81-558: PyTorch - Applications of Deep Neural Networks @Washington University in St. Louis
Jupyter Notebook
374
star
5

jh-kaggle-util

Jeff Heaton's Kaggle Utilities
Python
278
star
6

encog-javascript

Encog for Javascript.
JavaScript
196
star
7

present

Code from Jeff Heaton's YouTube videos, articles, and conference presentations.
Assembly
177
star
8

encog-java-examples

Java
162
star
9

encog-c

The Encog project for C/C++
C
112
star
10

pyimgdata

Python
110
star
11

jeffheaton-book-code

Source code from my older (pre Artificial Intelligence for Humans books) books. I am no longer updating these older editions.
Java
90
star
12

app_generative_ai

T81-559: Applications of Generative Artificial Intelligence
Jupyter Notebook
85
star
13

mergelife

Evolve complex cellular automata with a genetic algorithm.
Python
75
star
14

encog-java-workbench

Java
60
star
15

pretrained-gan-70s-scifi

Pretrained model 1024x1024 trained on 1970s scifi art
Jupyter Notebook
51
star
16

pretrained-gan-minecraft

Minecraft GAN
Jupyter Notebook
44
star
17

encog-dotnet-more-examples

This project will contain additional examples for Encog, beyond the console examples provided with Encog. These examples are primarily Winforms GUI applications, and may make use of third party libraries other than Encog.
C#
43
star
18

docker-stylegan2-ada

My Docker image for running Stylegan2 ADA with GPU
Dockerfile
39
star
19

papers

Repository to hold source code related to academic papers I've published.
Python
30
star
20

encog-sample-csharp

A sample application for Encog C#.
C#
28
star
21

pretrained-gan-fish

Pretrained model for fish, 256x256
Jupyter Notebook
25
star
22

article-code

Python
23
star
23

stylegan2-toys

Various projects that I've worked on for special effects in StyleGAN2.
Jupyter Notebook
18
star
24

encog-sample-java

Sample stand-alone Encog project
Java
15
star
25

libsvm-java

This is simply a repository to hold the latest libsvm Java, and allow me to track changes. This is not my own project. See homepage URL for source.
14
star
26

pretrained-merry-gan-mas

Jupyter Notebook
13
star
27

docker-jupyter-python-r

Jupyter notebook with Python and R.
Jupyter Notebook
12
star
28

ios_video_classify

A simple IOS application that uses mobilenet to classify 1000 different images from an IOS device's video camera.
Swift
11
star
29

proben1

A copy of the datasets for PROBEN1 from the paper "Proben1: A Set of Neural Network Benchmark Problems and Benchmarking Rules", Lutz Prechelt
Perl
11
star
30

phd-dissertation

Dissertation (Jeff Heaton)
Java
10
star
31

jeffheaton.github.io

The AIFH website.
HTML
10
star
32

cabi_genai_automation

Introduction to Automation with LangChain, Generative AI, and Python
Jupyter Notebook
10
star
33

apollo64

˜Apollo64 BBS: This is an old Commodore 64 based BBS that I created on back in the late 80's. Basic/6510 assembler.
Assembly
10
star
34

pretrained-gan-tech

Technology GAN
Jupyter Notebook
9
star
35

mergelife-experiments

Data for several runs of MergeLife
9
star
36

jeffheaton

8
star
37

ga-csharp

A simple C# Genetic Algorithm
C#
8
star
38

pysamppackage

A sample package for Python to learn how to structure a package.
8
star
39

tf-intro

Jupyter Notebook
7
star
40

encog-silverlight-core

Encog for Silverlight is no longer supported or maintained. Version 3.0 was the last released version.
6
star
41

jlatexmath-example

A simple example of using JLatexMath
Java
6
star
42

stylegan2-cloud

Utilities to run StyleGAN2 ADA Pytorch in the cloud
5
star
43

docker-stylegan3

Docker image to run StyleGAN3 with GPU
Dockerfile
4
star
44

jna-example

Simple Java JNA example with a Maven build script.
Java
3
star
45

jeffheaton-bookcode

Source code from books published by Jeff Heaton
3
star
46

data-mirror

A mirror of some of the files at data.heatonresearch.com
HTML
2
star
47

data

Some common datasets with headers added and properly setup for Pandas/others
2
star
48

jheaton_images

Images that I use for various sites, like Kaggle
2
star
49

baseenv-jupyter

Basic Docker environment for Jupyter and Python
Dockerfile
2
star
50

docker-jupyterhub

My Jupyterhub docker image
2
star
51

dynaface

Dynaface is both a computer application and Python library to measure facial symmetry utilizing advanced AI for both symmetric and asymmetric faces.
Python
1
star
52

kaggle-otto-group

Jeff Heaton's Entry for Kaggle Otto Group Product Classification Challenge
1
star
53

jheaton-ds2

Some of my datasets (public)
1
star
54

docker-mergelife

Docker image for MergeLife
Dockerfile
1
star