The Wayback Machine - http://web.archive.org/web/20210515035645/https://github.com/topics/machine-learning
Skip to content
#

Machine learning

Machine learning is the practice of teaching a computer to learn. The concept uses pattern recognition, as well as other forms of predictive algorithms, to make judgments on incoming data. This field is closely related to artificial intelligence and computational statistics.

Here are 60,253 public repositories matching this topic...

Pangoraw
Pangoraw commented Apr 26, 2021

🐛 Bug

The builtin getattr function has a third optional parameter called default, returned if the key fetched does not exist. However, the IR emitter does not support this third parameter and supports only the 2 arguments version:

https://github.com/pytorch/pytorch/blob/master/torch/csrc/jit/frontend/ir_emitter.cpp#L2858-L285

julia
mcabbott
mcabbott commented May 13, 2021

This seems surprising:

julia> get([1,2,3], 4, 5)
5

julia> get((1,2,3), 4, 5)
ERROR: MethodError: no method matching get(::Tuple{Int64, Int64, Int64}, ::Int64, ::Int64)

julia> get((a=1,b=2,c=3), :d, 5)
5

julia> get((a=1,b=2,c=3), 4, 5)
5

Data science Python notebooks: Deep learning (TensorFlow, Theano, Caffe, Keras), scikit-learn, Kaggle, big data (Spark, Hadoop MapReduce, HDFS), matplotlib, pandas, NumPy, SciPy, Python essentials, AWS, and various command lines.

  • Updated May 13, 2021
  • Python
trivialfis
trivialfis commented Dec 13, 2020

Currently many more Python projects like dask and optuna are using Python type hints. With the Python package of xgboost gaining more and more features, we should also adopt mypy as a safe guard against some type errors and for better code documentation.

Wikipedia
Wikipedia