TheAlgorithms/Python
Documented errors, page 5 of 7. Back to TheAlgorithms/Python
| Code / Message | Type | Severity | Tags |
|---|---|---|---|
| area_rectangle() only accepts non-negative values | exception | error | python, math, geometry, validation, valueerror, input-validation |
| daily_interest_rate must be >= 0 | exception | error | finance, interest, rate, validation |
| Input series cannot have 0 as an element | exception | error | python, math, division-by-zero, value-error |
| n must not be negative | validation | error | physics, input-validation, valueerror |
| Negative arguments are not supported | exception | error | python, input-validation, dynamic-programming, math |
| The given input must be positive | validation | error | bit-manipulation, input-validation, python |
| Expected the same number of rows for A and B. Instead found… | validation | error | linear-algebra, schur-complement, shape-mismatch, numpy |
| Invalid input: num must be >= 0 and sides must be >= 3. | exception | error | math, valueerror, input-validation, polygonal-numbers |
| Predictor hasn't been fit yet | exception | error | machine-learning, regression, lifecycle, state-validation |
| y_true must be one-hot encoded. | validation | error | machine-learning, loss-function, one-hot, label-encoding |
| Capacity cannot be negative | exception | error | greedy, knapsack, validation, fractional-cover |
| Each message character has to be included in alphabet! | exception | error | ciphers, trifid, validation, input-sanitization |
| Hand should be of type 'str | validation | error | project-euler, poker, typeerror, type-check |
| Number of initial values must be equal to number of rows in… | exception | error | linear-algebra, jacobi, numpy, validation, initial-guess |
| The input value of 'num_rows' should be greater than or… | exception | error | matrix, pascal-triangle, range-validation, valueerror |
| encode() accepts only letters of the alphabet and spaces | exception | error | cipher, validation, python |
| Inductance cannot be 0 or negative | exception | error | electronics, lc-circuit, validation, physics |
| Inductance cannot be negative | exception | error | electronics, validation, inductance, reactance, valueerror |
| Odd number of symbols | exception | error | enigma, plugboard, validation, odd-length |
| Source voltage must be positive. | validation | error | electronics, rc-circuit, physics, validation, python |
| The Elements List is empty | exception | error | linked-list, empty-input, builder, generic-exception |
| Input arrays must have the same shape. | validation | error | machine-learning, loss-function, cross-entropy, shape-mismatch |
| Invalid input: is the wrong length. | validation | error | graphs, input-validation, constructor |
| RHS must be > 0 | validation | error | linear-programming, simplex, infeasible-start, input-validation |
| The height above the ground cannot be negative | exception | error | physics, validation, negative-value, height, valueerror |
| all elements must be integers | validation | error | bit-manipulation, type-validation, python |
| base must be >= 2 | exception | error | python, value-error, radix, input-validation |
| Both arguments MUST be integers! | validation | error | bit-manipulation, type-validation, recursion, python |
| Full Queue | exception | error | queue, overflow, circular-buffer, capacity |
| Intrinsic concentration cannot be negative in a… | validation | error | electronics, semiconductor, physics, validation, sign-error |
| Not a Valid Octal Number | exception | error | python, validation, numeral-system, conversion |
| Profit can not be negative. | exception | error | knapsack, greedy, validation, data-quality |
| Capacitance cannot be 0 or negative | exception | error | electronics, lc-circuit, validation, physics |
| Input value must be an 'int' type | exception | error | bit-manipulation, type-error, python |
| invalid expression | exception | error | stack, expression-parsing, validation, python |
| max_weight must greater than zero. | exception | error | knapsack, greedy, validation, capacity |
| Distance can not be negative | exception | error | physics, validation, negative-value, distance, valueerror |
| surface_area_sphere() only accepts non-negative values | exception | error | python, math, geometry, validation, valueerror, input-validation |
| double_factorial_iterative() only accepts integral values | exception | error | maths, factorial, iterative, validation, valueerror |
| Resistance cannot be negative | exception | error | electronics, validation, ohms-law, resistance, valueerror |
| This function only accepts non-negative integers | exception | error | conversions, numbers-to-words, validation, range-check |
| df must be > 0 | exception | error | nlp, tf-idf, division-by-zero, input-validation |
| Molar mass should be greater than 0 kg/mol | exception | error | physics, gas, units, molar-mass, bare-exception |
| Coefficient and constant matrices dimensions must be nxn… | exception | error | linear-algebra, jacobi, numpy, validation, matrix-shape |
| Invalid inputs. Enter positive value. | validation | error | physics, thermodynamics, input-validation, valueerror |
| number must not be negative | validation | error | bit-manipulation, input-validation, python |
| is not a valid color for multiplier band | exception | error | electronics, resistor, color-code, multiplier, valueerror |
| double_factorial_iterative() not defined for negative values | exception | error | maths, factorial, iterative, validation, valueerror |
| graham_scan: argument must contain more than 3 points. | exception | error | computational-geometry, convex-hull, input-validation |
| The queue is empty | exception | error | queue, priority-queue, underflow, python |
| The length of profit and weight must be same. | exception | error | knapsack, greedy, validation, input-mismatch |
| vol_conical_frustum() only accepts non-negative values | exception | error | math, validation, geometry, argument-order, valueerror |
| : Invalid input, please enter a positive integer. | exception | error | python, math, primes, validation, value-error |
| Incorrect input: is already in the graph. | validation | error | graphs, duplicate, vertex |
| Input matrix A is not invertible. Cannot compute Schur… | validation | error | linear-algebra, schur-complement, singular-matrix, numpy, pseudo-inverse |
| Label value must not be greater than vocabulary size. | exception | error | machine-learning, loss-function, nlp, vocabulary |
| number_of_compounding_periods must be > 0 | exception | error | finance, interest, compounding, validation |
| Parameter number must be greater than or equal to 0 | validation | error | project-euler, validation, valueerror, loop-bounds |
| binary_search_insert() only accepts either a list, range or… | exception | error | type-validation, binary-search, input-validation |
| Coefficient matrix dimensions must be nxn but received | exception | error | linear-algebra, jacobi, numpy, validation, matrix-shape |
| Depth cannot be less than 0 | validation | error | physics, input-validation, valueerror |
| Input data have different datatype... dataset | exception | error | numpy, dtype, input-validation, similarity-search |
| Input must be an integer | exception | error | math, typeerror, type-validation, digits |
| Input values must either be float or int | validation | error | graphics, type-validation, projection |
| area_ellipse() only accepts non-negative values | exception | error | python, math, geometry, validation, valueerror, input-validation |
| power is negative | exception | error | math, fibonacci, matrix, linear-algebra, negative-value, valueerror |
| QUEUE IS FULL | exception | error | queue, overflow, circular-buffer, capacity |
| Stress cannot be negative | exception | error | physics, validation, negative-value, valueerror |
| surface_area_cylinder() only accepts non-negative values | exception | error | python, math, geometry, validation, valueerror, input-validation |
| Inputs and select signal must be 0 or 1 | exception | error | boolean-algebra, multiplexer, validation, python |
| Invalid value of 'position' | exception | error | value-validation, array, selection, quickselect, off-by-one |
| principal must be > 0 | exception | error | finance, interest, principal, validation |
| successes must be lower or equal to trials | exception | error | math, probability, statistics, input-validation |
| The value of input must be non-negative | exception | error | bit-manipulation, validation, python |
| Value not found | exception | error | value-validation, binary-tree, bst, delete |
| area_square() only accepts non-negative values | exception | error | python, math, geometry, validation, valueerror, input-validation |
| The linked list is empty. | exception | error | linked-list, value-error, rotate, empty-collection |
| Binary search tree is empty | exception | error | binary-tree, empty-state, max, query |
| Each integral piece of rod must have a corresponding price… | validation | error | dynamic-programming, input-validation, argument-mismatch |
| Expecting colors, provided colors | exception | error | electronics, resistor, validation, arity |
| Gravitational force can not be negative | exception | error | physics, validation, negative-value, valueerror |
| Intrinsic concentration should be positive | validation | error | electronics, physics, input-validation |
| the string should be not empty string | validation | error | dynamic-programming, input-validation, strings |
| Input must be a non-negative integer | validation | error | bit-manipulation, input-validation, type-validation, python |
| Modulus n must be greater than 1 | exception | error | math, number-theory, valueerror, modular-arithmetic |
| Speed must not exceed light speed 299,792,458 [m/s]! | validation | error | physics, relativity, units, range-check, valueerror |
| The parameter s must not be empty. | exception | error | value-validation, burrows-wheeler, empty-input, compression |
| The mass of a body cannot be negative | exception | error | physics, validation, negative-value, mass, valueerror |
| base must be <= 36 | exception | error | python, value-error, radix, base-conversion |
| gamma must be > 0 | exception | error | machine-learning, svm, kernel, hyperparameters |
| Cash flows list cannot be empty | validation | error | finance, input-validation, valueerror |
| number must be a positive integer | exception | error | math, input-validation, valueerror, negative-numbers |
| param `position` must be non-negative | exception | error | math, valueerror, input-validation, triangular-numbers |
| The order must be greater than or equal to 1. | exception | error | math, valueerror, distance-metrics, parameter-validation |
| The parameter bwt_string type must be str. | exception | error | type-validation, burrows-wheeler, bwt-inverse, compression |
| Batch size of y_true and y_pred must be equal. | exception | error | machine-learning, loss-function, nlp, perplexity |
| Distance cannot be negative | validation | error | electronics, electrostatics, physics, validation, sign-error |
| double_factorial_recursive() only accepts integral values | exception | error | maths, factorial, recursion, validation, valueerror |
| log10(0) is undefined. | exception | error | nlp, tf-idf, math-domain, input-validation |
| The citations should be a list of non negative integers. | exception | error | input-validation, bibliometrics, argument-validation |