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,084 public repositories matching this topic...

dreiss
dreiss commented May 6, 2021

🐛 Bug

After freezing a traced model, I expect all unnecessary tuple operations to be removed, but some remain.

To Reproduce

https://colab.research.google.com/gist/dreiss/0414c8e294e482e8a07f98990e7130fc/freezetuple.ipynb

Expected behavior

No TupleConstruct and TupleUnpack nodes.

Environment

See notebook. It reproduces on nightly as well.

Additional context

julia
jamblejoe
jamblejoe commented May 4, 2021
julia> firstindex(enumerate(1:3))
ERROR: MethodError: no method matching firstindex(::Base.Iterators.Enumerate{UnitRange{Int64}})
Closest candidates are:
  firstindex(::Any, ::Any) at abstractarray.jl:366
  firstindex(::Pair) at pair.jl:63
  firstindex(::AbstractChar) at char.jl:195
  ...

Shouldn't this be defined? The return of iterate(enumerate...) is a tuple of an index and t

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 Feb 18, 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