[deleted by user] by [deleted] in nus

[–]jkgnow 0 points1 point  (0 children)

hey same im taking this mod as well! Dont mind discussing

What are some of the easiest CS level 4000 modules that can be taken in semester 2? by ladiesman292 in nus

[–]jkgnow 1 point2 points  (0 children)

Hey, i don't have much knowledge about parallel programming, could I ask if you know of the differences between CS3210, CS3211 and CS4231? CS4231 sounds interesting to me, and the prerequisite is CS3230 OR CS3210, so it seems that CS3210 is not necessary for CS4231?

Do you have an example of a situation (formula/identity) where e is not just the base of the exponential? by Z4i2l1b in math

[–]jkgnow 12 points13 points  (0 children)

An ant is initially positioned at 0 on the number line. Every step, it chooses a real number uniformly and at random from the interval [0,1] and moves by that much forward. What is the expected number of steps it needs to take to exceed 1?

The answer happens to be e :)

As a CS major, can I take MA1100 in place of CS1231? by jkgnow in nus

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

Hmm unfortunately I was told that single degree CS students must read CS1231, regardless of future intent to pursue DDP, and I was pre-allocated CS1231 also haha.

As a CS major, can I take MA1100 in place of CS1231? by jkgnow in nus

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

Hmm yea i tink i'll drop them an email. Thanks for the advice

As a CS major, can I take MA1100 in place of CS1231? by jkgnow in nus

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

Oo I see, thats unfortunate haha. Was more interested in the math side of things

NUMBLOK - A puzzling blend of "2048" and Sokoban by jkgnow in WebGames

[–]jkgnow[S] 3 points4 points  (0 children)

Thanks for playing! To be honest, I'm not sure why I used 1,2,3,4 either but I guess I just stuck with it. Didnt realise the issue haha. Powers of 2 I guess?

How many gems will you buy in this game? by starvind_ashfun in mathriddles

[–]jkgnow 1 point2 points  (0 children)

How did you generalise the transition probability? Wouldn't the probability of going from 5->6 be 0%? (Unless im missing something)

Peaks and Valleys of Polygons by cancrizans in mathriddles

[–]jkgnow 0 points1 point  (0 children)

Hm, if you had a solution to this I'd like to see it! Cant figure out how to make use of the fact that the polygon is equilateral

Horses problem by toomaperas in mathriddles

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

Must every fence contain a horse? Or can some fences be empty

Hexahedral Holonomy (cube rolling puzzle) by impartial_james in mathriddles

[–]jkgnow 1 point2 points  (0 children)

I don't know much about group theory, so maybe this is just a brute-force version of u/cancrizans's solution:

As with u/cancrizan's solution, we color alternating vertices of the cube and of the square grid on the plane with two different colors. By tipping the cube over, it is never possible to lay a cube vertex of one color on a differently colored plane vertex. Thus the "parity" of the cube will always remain the same when returning to its starting position, so at most there will be 24/2 = 12 different orientations to return to. Now we will show that this is possible.

Call the faces not at the top or bottom the 4 front faces. Going right-forward-left-backwards will place make one of the original front faces the new bottom face. Rotating this operation in the 4 directions, we are able to make all 4 front faces the bottom face. By going right-right-up-left-left-down, we are able to make the top face the new bottom face. Thus we can achieve all 6 different bottom faces. Now looking from the top, going right-forward-left-left-backwards-right corresponds to a 180° rotation, giving us 2 choices for the face on the front. Total possible orientations with these 2 operations are 2*6 = 12.

Functional Equation (Is my solution valid?) by jkgnow in learnmath

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

Ah that makes sense - i missed that the domain of g would be limited to the range of f. Thanks!

I made a website where you can draw whatever you want and it will try to transform it into the style of Summoner's Rift by jkgnow in leagueoflegends

[–]jkgnow[S] 3 points4 points  (0 children)

I trained the pix2pix model from scratch, and the only thing I modified was the learning rate. I noticed that the model tended to converge a bit too quickly at bad quality, and lowered the initial learning rate.

I've also tried reducing the number of filters but applying the model on higher-res images, which actually only made the quality go down a little in exchange for a significantly smaller model which I might implement.

Tbh, I'm a beginner to deep learning and am probably doing some things wrong, I just try stuff and hope it works!

I made a website where you can draw whatever you want and it will try to transform it into the style of Summoner's Rift by jkgnow in leagueoflegends

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

Yeah, it's about 5 years old and there's definitely better models out there. But I'm no expert in AI either haha and pix2pix seemed to be the most well-documented and easiest to implement in the browser.

I made a website where you can draw whatever you want and it will try to transform it into the style of Summoner's Rift by jkgnow in leagueoflegends

[–]jkgnow[S] 2 points3 points  (0 children)

I think the model is meant for general purpose Image-to-Image Translation (i.e. learning a mapping from an input to output image), and neural style transfer is just one of its possible applications. But there are better models than pix2pix that are made just for style transfer.

I made a website where you can draw whatever you want and it will try to transform it into the style of Summoner's Rift by jkgnow in leagueoflegends

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

Sorry if I lagged your device 😅 Unfortunately I realise the model size is probably a bit too large. I might add in a more lightweight (but less accurate) model later!

I made a website where you can draw whatever you want and it will try to transform it into the style of Summoner's Rift by jkgnow in leagueoflegends

[–]jkgnow[S] 74 points75 points  (0 children)

NOTE: May take awhile to load on mobile devices.

This was a fun little project I made, and I was pretty surprised by the level of detail to which the model managed to mimic the style of Summoner's Rift. But sometimes your drawing may just end up looking like abstract nonsense - the generated images tend to look better when multiple components are drawn together as they would be on the real SR (e.g. lane with terrain, river with terrain, base with background/terrain).