Berk U.

Cambridge, MA

berkustun.com

Age: 28

I am a Ph.D. student in the Electrical Engineering and Computer Science Department at MIT. I am interested in developing new methods for data-driven decision-making and using them to solve problems in areas such as climate change, crime prediction, healthcare and revenue management.

Apr
26
awarded Civic Duty
Apr
19
awarded Autobiographer
Apr
15
awarded Yearling
Apr
15
awarded Autobiographer
Apr
13
accepted Why does Math.min([1,2]) return NaN?
Apr
13
revised Why does Math.min([1,2]) return NaN?
added 8 characters in body
Apr
13
asked Why does Math.min([1,2]) return NaN?
Apr
12
comment Javascript - how to quickly construct a binary representation for an array of distinct positive integers
Thank you! It's unfortunate that there isn't an easy way to make it work for numbers greater than 32. The solution that I came up with is: groupId = _.reduce(a, function(bin, s){return bin + Math.pow(2,s-1)}, 0).toString(2) though this outputs a String. Out of curiosity, will JS be faster when working with binary numbers vs Strings?
Apr
12
accepted Javascript - how to quickly construct a binary representation for an array of distinct positive integers
Apr
11
asked Javascript - how to quickly construct a binary representation for an array of distinct positive integers
Apr
11
comment How to create a Set of user-defined objects in Javascript with a user-defined equality function?
Ohhh nevermind! I thought that you had to load an external library to be able to call var map = new Map().
Apr
11
comment How to create a Set of user-defined objects in Javascript with a user-defined equality function?
Yes sorry that was what I meant. I'm just trying to find a Map implementation that let's me use the solution you came up with. Do you know of a Map implementation that is keyed by the valueOf() each added item?
Apr
11
accepted How to create a Set of user-defined objects in Javascript with a user-defined equality function?
Apr
11
comment How to create a Set of user-defined objects in Javascript with a user-defined equality function?
Thank you! Two follow-up questions: 1) Since this Set implementation uses valueOf, would that also work with myClass? 2) Would this Map implementation work?
Apr
11
comment How to create a Set of user-defined objects in Javascript with a user-defined equality function?
@trincot That makes sense. I'm still very new to JS, so I'm not familiar with valueOf (is that just the return value of myClass?). Either way, valueOf would definitely be an option if I can define as I wish for any of the classes that I create.
Apr
11
asked How to create a Set of user-defined objects in Javascript with a user-defined equality function?
Apr
8
accepted Is Latin hypercube sampling effective in multiple dimensions?
Apr
1
awarded Constituent
Apr
1
awarded Caucus
Mar
20
revised How to account for case weights when generating folds for K-fold CV?
deleted 64 characters in body
1 2 3 4 5