Giter Club home page Giter Club logo

tarrysingh / artificial-intelligence-deep-learning-machine-learning-tutorials Goto Github PK

View Code? Open in Web Editor NEW
3.7K 312.0 1.6K 1.8 GB

A comprehensive list of Deep Learning / Artificial Intelligence and Machine Learning tutorials - rapidly expanding into areas of AI/Deep Learning / Machine Vision / NLP and industry specific areas such as Climate / Energy, Automotives, Retail, Pharma, Medicine, Healthcare, Policy, Ethics and more.

Home Page: https://deepkapha.ai

License: Other

Python 96.69% CSS 0.01% Makefile 0.01% HTML 0.65% MATLAB 0.15% C++ 0.53% TeX 0.01% C 0.27% R 0.01% Shell 0.05% GLSL 0.01% JavaScript 0.11% TypeScript 0.01% Java 1.02% Dockerfile 0.01% Ruby 0.01% GAP 0.15% ActionScript 0.09% M4 0.01% Objective-C 0.27%
machine-learning deep-learning tensorflow python pytorch keras lua matplotlib aws kaggle

artificial-intelligence-deep-learning-machine-learning-tutorials's People

Contributors

tarrysingh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

artificial-intelligence-deep-learning-machine-learning-tutorials's Issues

Add a Reddit section

Most of the people who start out new don't find a latest feed of community hyped resources on ML and DL topics. It would be pretty good if we add a Reddit section.
If you're fine with this suggestion I'll put up a PR with the update ๐Ÿ˜„

Performance issues in Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials

Hello! I've found two types of performance issues in your program:

  • batch() should be called before map().
  • tf.Session being defined repeatedly leads to incremental overhead.

You can make your program more efficient by fixing the above two problems. Here are the tensorflow document and the Stack Overflow post to support this.

Below are detailed issues about batch() should be called before map():

  • tensorflow_dl_models/official/wide_deep/wide_deep.py: dataset = dataset.batch(batch_size)(here) should be called before dataset = dataset.map(parse_csv, num_parallel_calls=5)(here).
  • tensorflow_dl_models/samples/outreach/blogs/blog_estimators_dataset.py: dataset = dataset.batch(32)(here) should be called before dataset = (tf.data.TextLineDataset(file_path).skip(1).map(decode_csv))(here).
  • tensorflow_dl_models/samples/outreach/blogs/blog_custom_estimators.py: .batch(32)(here) should be called before .map(decode_csv, num_parallel_calls=4)(here).
  • tensorflow_dl_models/samples/core/get_started/iris_data.py: dataset = dataset.shuffle(1000).repeat().batch(batch_size)(here) should be called before dataset = dataset.map(_parse_line)(here).

Besides, you need to check the function called in map()(e.g., _parse_line called in dataset = dataset.map(_parse_line)) whether to be affected or not to make the changed code work properly. For example, if _parse_line needs data with shape (x, y, z) as its input before fix, it would require data with shape (batch_size, x, y, z).

Below are detailed issues about tf.Session being defined repeatedly:

  • tensorflow_dl_models/tutorials/image/cifar10/cifar10_eval.py: with tf.Session() as sess:(here) is defined in function eval_once(here) which is repeatedly called in a loop while True:(here).
  • tensorflow_dl_models/research/object_detection/eval_util.py: sess = tf.Session(master, graph=tf.get_default_graph())(here) is defined in function _run_checkpoint_once(here) which is repeatedly called in a loop while True:(here).
  • tensorflow_dl_models/research/im2txt/im2txt/evaluate.py: with tf.Session() as sess:(here) is defined in function run_once(here) which is repeatedly called in a loop while True:(here).
  • tensorflow_dl_models/research/capsules/experiment.py: session = tf.Session(config=tf.ConfigProto(allow_soft_placement=True))(here) is defined in function run_experiment(here) which is repeatedly called in a loop while paused < 360:(here).
  • tensorflow_dl_models/research/street/python/vgsl_model.py: sess = tf.Session('')(here) is defined in a loop while True:(here).
  • tensorflow_dl_models/research/skip_thoughts/skip_thoughts/track_perplexity.py: with tf.Session() as sess:(here) is defined in function run_once(here) which is repeatedly called in a loop while True:(here).
  • tensorflow_dl_models/research/inception/inception/inception_eval.py: with tf.Session() as sess:(here) is defined in function _eval_once(here) which is repeatedly called in a loop while True:(here).
  • tensorflow_dl_models/research/slim/datasets/download_and_convert_cifar10.py: with tf.Session('') as sess:(here) is defined in function _add_to_tfrecord(here) which is repeatedly called in a loop for i in range(_NUM_TRAIN_FILES):(here).
  • deep-learning/GANs and Variational Autoencoders/BigGAN-PyTorch/scripts/tfhub/converter.py: sess = tf.Session()(here) is defined in function dump_tfhub_to_hdf5(here) and dump_tfhub_to_hdf5 is called in function convert_biggan(here) which is repeatedly called in a loop for res in RESOLUTIONS:(here).
  • deep-learning/udacity-deeplearning/weight-initialization/helper.py: with tf.Session() as session:(here) is defined in function _get_loss_acc(here) which is repeatedly called in a loop for i, (weights, label) in enumerate(weight_init_list):(here).

If you define tf.Session out of the loop and pass tf.Session as a parameter to the loop, your program would be much more efficient.

Looking forward to your reply. Btw, I am very glad to create a PR to fix it if you are too busy.

The Jupyter Notebooks Links are not found

[Word2Word][EN-TH] Some words are missing from x2ys dict

w2w_th_en_err

<ipython-input-108-242465236c9f> in <module>
      1 en_word = "unicorn"
      2 print(en_word)
----> 3 en2th(en_word)

/usr/local/lib/python3.6/site-packages/word2word/word2word.py in __call__(self, query, n_best)
     10             print("Sorry. There's no such word in the dictionary.")
     11         x = self.word2x[query]
---> 12         ys = self.x2ys[x]
     13         words = [self.y2word[y] for y in ys]
     14         return words[:n_best]

KeyError: 10130```


The word 'unicorn' exists in "word2x" dict but not in "x2ys" dict.

Performance issues in the definition of programs.dataset,tensorflow_dl_models/official/mnist/dataset.py

Hello,I found some performance issues.
The first one is in the definition of dataset ,tensorflow_dl_models/official/mnist/dataset.py,
tf.data.FixedLengthRecordDataset(images_file, 28 * 28, header_bytes=16).map was called without num_parallel_calls.
I think it will increase the efficiency of your program if you add this.

The same issues also exist in tf.data.FixedLengthRecordDataset(
labels_file, 1, header_bytes=8).map
,
.map(decode_csv)),
dataset = dataset.map(decode),
dataset = dataset.map(decode)
and dataset = dataset.map(_parse_line)

Here is the documemtation of tensorflow to support this thing.

The socond one is in thedefinition of Eval,tensorflow_dl_models/research/street/python/vgsl_model.py.
sess = tf.Session('') was repeatedly called and was not closed.
I think it will increase the efficiency and avoid out of memory if you close this session after using it.

The same issues also exist in sess = tf.Session()

Here are two files to support this issue,support1 and support2

Looking forward to your reply. Btw, I am very glad to create a PR to fix it if you are too busy.

Start up Asus

I try to start my old laptop Asus for using it with Linux Mint.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.