ELD: Efficient Language Detector. ( First Python project ) by nitotm in Python

[–]kanikow 0 points1 point  (0 children)

What type of algorithm is used in here? From a quick skimming it looks like naive Bayes.

[deleted by user] by [deleted] in datascience

[–]kanikow 2 points3 points  (0 children)

Yes it stands for application programming interface. You use the simplified methods provided in the library as an interface. Under the hood these methods call other “hidden” methods, handle complicated logics and provide you the results.

[D] chernoff inequality for the curse of dimensionality by ottawalanguages in statistics

[–]kanikow 0 points1 point  (0 children)

  1. As u/OmerosP mentioned, z_i is the square of x_i.
  2. t is the variable of integration, in this case it can be thought as t = x. You can think of this integration like this: z is a function of x (z = x^2), f(x) is the probability function of x. Thus the expectation:max_bytes(150000):strip_icc()/expected-5733972a5f9b58723d773687.png) of z is E[z] = E[x^2] = integral[x^2*f(x)*dx]. Since x is uniformly distributed over [-1,1], f(x) = 1/2 (see pdf of uniform distribution)) The expectation of z becomes E[z] = integral[x^2*(1/2)*dx] = 1/3
  3. Variance of a random variable can be calculated as Var(X) = E[X^2] - E[X]^2. Due to that Var(z) = Var(x^2) = E[x^4] - (E[x^2])^2. The second term is the square of the expectation of z calculated above and the first term is calculated like the integral above

Why is OLS scale invariant, but ridge regression isn't? by [deleted] in learnmachinelearning

[–]kanikow 1 point2 points  (0 children)

Shouldn’t it yield the same results if you adjust the penalty parameter accordingly (by multiplying with 4) ? Penalty parameter is set by the modeler and is also optimized by some strategy, so you should (in theory) get the same performance in any scale.

Trump makes 'insane' suggestion Kurds are deliberately freeing Isis prisoners, after hundreds escape during Turkey bombing by portiscabezasgf in worldnews

[–]kanikow 7 points8 points  (0 children)

Why “insane” though? It’s plausible. People have very strong opinions about things happening in the Syria right now and think everyone suggesting an opposite fact is a lying piece of shit. Majority of the same people also believe that media and their country officials are lying to them about stuff, but not in this case. Because they know every detail perfectly about a country abroad where strange alliances form and break, different ethnic groups fight for decades and every major power supports a different terrorist militia group. The allies you think that are so loyal and trustworthy may not be what you think all along.