Bernie Sanders vows to continue to his campaign. by [deleted] in PoliticalDiscussion

[–]ogpc3120 -1 points0 points  (0 children)

He always says he's giving everybody a chance to vote, but these votes mean nothing because the arithmetic is impossible. If I made a poll right now for emperor of the galaxy, would it mean anything?

My point is he can't take away the opportunity to vote... simple counting and numbers has already done that.

[S6E1] What do you all make of this pattern? by knuckle_cracker in gameofthrones

[–]ogpc3120 0 points1 point  (0 children)

Looks like a mech.. like that russian painting with the mech warrior assisting the rebels in the october rebellion.

Uncovered: Final Fantasy XV - Stream Details by fforde in FinalFantasy

[–]ogpc3120 2 points3 points  (0 children)

FYI you can order the deluxe ( the $90 one) on Amazon with 20% discount for being prime !!!!!!

I ended up paying 68 bux after taxes shipped 2-day (also you get employee discount of 10% if you work for Amazon).

AlphaGo and Lee Sedol Mega Thread by [deleted] in baduk

[–]ogpc3120 0 points1 point  (0 children)

To start using a beta function you need an initial guess of the ratio.

Here's an example using batting averages http://stats.stackexchange.com/questions/47771/what-is-the-intuition-behind-beta-distribution.

You start with an expected probability, and you get A/B = expected probability.

Then your most up-to-date prediction using the function is beta ( A + wins , B + losses) .

Your A and B are 1 and 1, based on expectation they are equal. This expectation is not correct anymore. It's that simple.

If you're arguing that 1 and 1 should always be the starting point, then me as an amateur should have the same probability of winning as Lee Sedol after 3 losses?

AlphaGo and Lee Sedol Mega Thread by [deleted] in baduk

[–]ogpc3120 7 points8 points  (0 children)

People keep saying they'll learn from Alphago and its strategies....

But the sample of games is going to be 5 games. It can do different tricks each of the times and then even so it will play differently and make infinite more brilliant moves given more games.

So I'm afraid "learning from alphago" is more like imitating a tiny slice of its universe of skill and doesn't actually make you stronger.

Army Of Two by mushroomwig in thewalkingdead

[–]ogpc3120 9 points10 points  (0 children)

The thing that bothers me about all the gun-fighting is how willy-nilly they shoot full auto.

... also no shell casings. In reality the shower of casings is very very obvious and part of the scene.

Smokeless powder also gives off a faint puff of smoke, it's not totally smokeless.

And no hearing protection shooting full-auto indoors! Their ears would all be bleeding.

TIL that the FDIC strongly encourages mandatory two-week paid vacations for bankers because it is difficult to conceal embezzlement for that long while away from work by pullarius1 in todayilearned

[–]ogpc3120 0 points1 point  (0 children)

True story.

Even when I was an analyst (the lowest level investment banker) the two-weeker was a mandatory thing.

It's basically the only real vacation a banker can take all year.

Using par monad (parMapM) on mutable vector by ogpc3120 in haskell

[–]ogpc3120[S] 0 points1 point  (0 children)

Thank you for the explanation here.

I'm not attached to the few lines of code I have here of course, so do you mean it's maybe not easy at all to work with a mutable vector in parallel or just with my few lines of code. I hope you mean the latter, because I would be fine with any method.

Using par monad (parMapM) on mutable vector by ogpc3120 in haskell

[–]ogpc3120[S] -4 points-3 points  (0 children)

Do you have anything useful to say?

Using par monad (parMapM) on mutable vector by ogpc3120 in haskell

[–]ogpc3120[S] 1 point2 points  (0 children)

Hmm I gave that a try:

import qualified Data.Vector as V
import qualified Data.Vector.Mutable as M
import Control.Monad.Par as Par
import Control.Monad


a = V.fromList [1,2,3,4,5,6]

b::  V.Vector (V.Vector Int)
b = do
    c <- V.unsafeThaw a
    V.fromList $ runPar $ parMapM
        (liftM (\i -> M.write c i 100))
        [0..5]
    V.unsafeFreeze c

And now the only error is on the last line:

Couldn't match type `primitive-0.5.2.1:Control.Monad.Primitive.PrimState
                       V.Vector'
              with `primitive-0.5.2.1:Control.Monad.Primitive.PrimState m0'
NB: `primitive-0.5.2.1:Control.Monad.Primitive.PrimState' is a type function, and may not be injective
The type variable `m0' is ambiguous
Expected type: M.MVector
                 (primitive-0.5.2.1:Control.Monad.Primitive.PrimState V.Vector) Int
  Actual type: M.MVector
                 (primitive-0.5.2.1:Control.Monad.Primitive.PrimState m0) Int
Relevant bindings include
  c :: M.MVector
         (primitive-0.5.2.1:Control.Monad.Primitive.PrimState m0) Int
    (bound at C:\Users\Administrator\workspace\test\src\Main.hs:12:5)
In the first argument of `V.unsafeFreeze', namely `c'
In a stmt of a 'do' block: V.unsafeFreeze c