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

transformers
patrickvonplaten
patrickvonplaten commented Mar 21, 2022

This issue is part of our Doc Test Sprint. If you're interested in helping out come join us on Discord and talk with other contributors!

Docstring examples are often the first point of contact when trying out a new library! So far we haven't done a very good job at ensuring that all docstring examples work correctly in 🤗 Transformers - but we're now very

Logigo
Logigo commented Mar 24, 2022

https://github.com/pytorch/pytorch/blob/9270bccaf67022042f42b57b97c7b630b1e05750/torch/utils/data/sampler.py#L86

The optional argument 'num_samples' to the RandomSampler class is listed as type Optional[int], but it is not optional, as an exception is raised if an int is not passed in:

https://github.com/pytorch/pytorch/blob/9270bccaf67022042f42b57b97c7b630b1e05750/torch/utils/data/sampler.p

good first issue module: typing triaged
joshua00214
joshua00214 commented Feb 25, 2022

Describe the issue linked to the documentation

Documentation should be changed to reflect that one-vs-rest is possible.

x = np.array([0,1,2,3,4,5,3,3,5,5,5,7,7,2])
x = x.reshape(-1,1)#this has 1 feature, therefore reshaping properly

y = [0,0,0,1,0,2,1,1,2,2,2,3,3,0] #note: y has multiple classes.


model = SVC(gamma = "auto", decision_function_shape="ovr")
model.fit(x,y)
p
julia
stevengj
stevengj commented Mar 25, 2022

As discussed on Discourse, it would be nice to have !foo return a ComposedFunction, which would

  1. allow dispatch and specialized methods for !foo
  2. allow nicer pretty printing of !foo as "!foo" rather than as "#xx (generic function with 1 method)" (by overloading show for ComposedFunction{typeof(!)}
good first issue feature

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 Mar 26, 2022
  • 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