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

tugsbayasgalan
tugsbayasgalan commented Apr 8, 2021

🐛 Bug

During our hackathon today, I ran into this weird error highlighting.

import torch
from typing import Dict

@torch.jit.script
def missing_index(x: Dict[str, int]) -> int:
    return x['dne']

missing_index({'item': 20, 'other_item': 120})

This code outputs:

     9 
     10 
---> 11 missing_index({'item': 20, 'other_item': 120})

RuntimeError: The fo
reshamas
reshamas commented Apr 20, 2021

Describe the issue linked to the documentation

Videos on contributing to scikit-learn reference were created prior to renaming the branch name, and so refer to master, not main

Suggest a potential alternative/fix

In this file, under "Video Resources" section: https://github.com/scikit-learn/scikit-learn/blob/d01014c3198aafa336d9f8ed306f292d68c4a886/doc/developers/contributing.r

julia
anowacki
anowacki commented Apr 22, 2021

Attempting to get the docstring for the .. function always erroneously returns an auto-generated docstring for the (nonexistent) dotted-. operator, unless it is qualified with the module in which it is defined/imported:

julia> ..
ERROR: UndefVarError: .. not defined

julia> "Docstring for `..`"
       ..(a, b) = a + b

..

julia> 

help?> ..
search: .. ...

  x .. y i

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