Archive for Reykjavik

Le Monde puzzle [#869]

Posted in Books, Kids, R, Statistics, University life with tags , , , , , , , on April 27, 2014 by xi'an

A Le Monde mathematical puzzle once again in a Sudoku mode:

In an nxn table, all integers between 1 and n appear n times. If max denotes the maximum over the numbers of different integers on all rows and columns,  what is the minimum value of max when n=7? when n=11?

I tried to solve it by the following R code (in a pre-breakfast mode in my Reykjavik Airbnb flat!):

[sourcecode language=”r” gutter=”false”]
#pseudoku
n=7
T=10^4
vals=rep(1:n,n)
minmax=n
for (t in 1:T){
psudo=matrix(sample(vals),ncol=n)
maxc=maxr=max(sapply(apply(psudo,1,unique),length))
if (maxc<minmax)
maxr=max(sapply(apply(psudo,2,unique),length))
minmax=min(minmax,max(maxc,maxr))
}
[/sourcecode]

but later realised that (a) the

sapply(apply(psudo,1,unique),length)

failed when all rows or all columns had the same number of unique terms and (b) I did not have to run the whole matrix:

[sourcecode language=”r” gutter=”false”]
vals=rep(1:n,n)
minmax=n
for (t in 1:T){
psudo=matrix(sample(vals),ncol=n)
maxc=max(length(unique(psudo[1,])),length(unique(psudo[,1])))
i=1
while((i<n)&(maxc<minmax)){
i=i+1
maxc=max(maxc,
length(unique(psudo[i,])),
length(unique(psudo[,i])))}
minmax=min(minmax,maxc)
}
[/sourcecode]

gaining a factor of 3 in the R execution. With this random exploration, the minimum value returned was 2,2,2,3,4,5,5,6,7,8 for n=2,3,4,5,6,7,8,9,10,11. Half-hearted simulating annealing during one of the sessions of AISTATS 2014 did not show any difference…

skyndimynd frá Íslandi (#5)

Posted in Mountains, pictures, Running, Travel with tags , , , , on April 26, 2014 by xi'an

Reykjavik2

AISTATS 2014 / MLSS tutorial

Posted in Mountains, R, Statistics, University life with tags , , , , , , , , , , on April 26, 2014 by xi'an

Here are the slides of the tutorial on ABC methods I gave yesterday at both AISTAST 2014 and MLSS. (I actually gave a tutorial at another MLSS a few years ago, on the pretty island of Berder in Brittany, next to Vannes.) They are definitely similar to previous talks and tutorials I delivered on this topic of ABC algorithms, with only the last part being original (if unpublished yet). And even then: as Michael Gutmann from the University of Helsinki pointed out to me at the end of my talk, there are similarities between the classification method he exposed at MCMSki 4 in Chamonix and our use of random forests. Before my talk, I attended the tutorial of Roderick Murray-Smith from the University of Glasgow, on Machine learning and Human Computer Interaction, which was just stunning in its breadth, range of applications, and mastering of multimedia tools. Making me feel like a perfectly inadequate follower…

[speakerdeck https://speakerdeck.com/xianblog/mlss-tutorial%5D

skyndimynd frá Íslandi (#4)

Posted in Mountains, pictures, Travel with tags , , , , , on April 25, 2014 by xi'an

Esja

AISTATS 2014 [no day #2]

Posted in Kids, Mountains, pictures, Running, Travel with tags , , , on April 25, 2014 by xi'an

Keflavik

Even though the talks yesterday morning at AISTATS 2014 (day #2) were of the same high quality as the other days, I “had” to skip them to drive my daughter to the airport. Originally, the flight was planned at 7:40, which would have given me plenty of time to get back for Andrew’s talk at 9pm, but the airport staff was on strike from 4 to 9 and so all flights were delayed. (Compared with strikes in France which are synonyms with chaotic mess, this Icelandic strike was quite civilized in that the disruption was rather minimal, with desks opening at 9pm sharp [and the passengers in the queue counting down the last seconds together!] and a very swift processing of bags.) Once at the airport, my wife and I took the opportunity to go birding on the peninsula, unsuccessfully  seeking the elusive puffins who have seemingly not yet made it back to the Icelandic cliffs where they nest in the summer. And I managed to get back to the conference hotel for an AISTATS executive meeting which may have landed me in more involvement in the AISTATS 2016 edition of the conferences.

Then, rather than joining the whole conference happily soaking in the hot waters of the blue lagoon, we went for a hike to a peak just north of Reykjavik, Þverfellshorn, which is part of the Esjan range,starting at 4pm (a first for me as I usually prefer starting at 4am..!, but this is far North, where days are getting long enough to enjoy two days in one!), and aiming at the leftmost part of the plateau in the picture below. The path was very well-marked, with a grading in boots (from one to three), and snow-free until the ultimate slope (it would have been very different a few days ago), and very mild in difficulty. What I liked most was the great views, starting under blue skies and ending up with a stormy one, the sun being low enough to dramatically light up the scene. (An helicopter visibly looking for someone in the mountain range obviously added to the dramatic feeling.) Another nice thing was to meet many people going up on our way down, meaning that locals did see the hike as an evening stroll they could start at 7pm!

Esja2