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

gmagogsfm
gmagogsfm commented May 12, 2021

There are some common misuse patterns in TorchScript that we should issue clear error messages for instead of generating generic error that doesn't capture root cause of error.

Here are a few examples:

  • Attempting to construct a nn.Module inside TorchScript. This currently errors out because TorchScript would attempt to compile __init__() method of module, which usually contains a call
jnothman
jnothman commented May 12, 2021

We should be using pkg_resources (or importlib.resources if our min Python version is 3.7) instead of uses of __file__.

$ get grep '__file__' sklearn/
sklearn/__check_build/__init__.py:    local_dir = os.path.split(__file__)[0]
sklearn/datasets/_base.py:    module_path = dirname(__file__)
sklearn/datasets/_base.py:    module_path = dirname(__file__)
sklearn/datasets/_base.py:    
julia
eschnett
eschnett commented May 26, 2021

I received this error message:

  MethodError: convert(::Type{Union{}}, ::Vector{Float32}) is ambiguous. Candidates:
    convert(::Type{T}, a::AbstractArray) where T<:Array in Base at array.jl:532
    convert(T::Type{var"#s79"} where var"#s79"<:BitArray, a::AbstractArray) in Base at bitarray.jl:577
    convert(T::Type{var"#s832"} where var"#s832"<:SparseArrays.SparseVector, m::AbstractVect

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