Nov. 8th, 2016

juan_gandhi: (VP)
Сведения, что Катя Шульман "предрекает голод в 17-м" я выкопал из каких-то дебильных источников, слегонца перепутав с оригиналом.

Извините, Катя; извините, те, кто принял мой текст всерьез.

Это ужас.
juan_gandhi: (VP)
  // test how file can be unfolded into multiple columns
  public void testUnfoldingColumn() throws IOException {
    // Here's the file
    File file = getFile("smalldata/chicago/chicagoAllWeather.csv");

    // Get all its lines
    final List<String> lines = Files.readLines(file, Charset.defaultCharset());

    // Store it in H2O, with typed column as a wrapper (core H2O storage is a type-unaware Vec class)
    Column<String> source = willDrop(Strings.newColumn(lines));

    // Produce another (virtual) column that stores a list of strings as a row value
    Column<List<String>> split = new UnfoldingColumn<>(Functions.splitBy(","), source, 10);

    // now check that we have the right data
    for (int i = 0; i < lines.size(); i++) {
      // Since we specified width (10), the rest of the list is filled with nulls; have to ignore them.
      // It's important to have the same width for the whole frame..
      String actual = StringUtils.join(" ", Predicate.NOT_NULL.filter(split.apply(i)));
      // So, have we lost any data?
      assertEquals(lines.get(i).replaceAll("\\,", " ").trim(), actual);
    }
  }
juan_gandhi: (VP)
Всякий, ностальгирующий по СССР, должен учитывать тот простой факт, что оттуда не выпускали. Что люди по 10 лет сидели в отказе.

И это уже не говоря о политзаключенных.

И если они вот этот вот факт учитывают, но продолжают ностальгировать, то они не просто обычная вата, а обычные мерзавцы. (Даже если эти люди ваши родители. Подумайте.)

fuck.

Nov. 8th, 2016 08:04 pm
juan_gandhi: (VP)
...
juan_gandhi: (VP)
Вот как в 1916-м жители Питера как-то не чуяли, что вообще там день грядущий им готовит.

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

August 2025

S M T W T F S
      12
3456789
10 11 12 13141516
17181920212223
24252627282930
31      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Aug. 19th, 2025 04:06 am
Powered by Dreamwidth Studios