Giter Club home page Giter Club logo

Comments (5)

SamuelLarkin avatar SamuelLarkin commented on June 8, 2024 2

🤦🏼‍♂️
I was going to write that I found a solution but it looks like I'm slightly too late.

Thanks for your answer.

mlr --icsv --ojson --flatsep : cat < mlr.bug.2.csv

[
{
  "expt_name": "lr=1.0e-5_e=16/000",
  "A": 40.93,
  "B.last_checkpoint": 39.75,
  "C.001": 44.05,
  "C.001.last_checkpoint": 43.13
},
{
  "expt_name": "lr=1.0e-5_e=16/001",
  "A": 41.09,
  "B.last_checkpoint": 41.11,
  "C.001": 43.81,
  "C.001.last_checkpoint": 43.82
},
{
  "expt_name": "lr=1.0e-5_e=16/002",
  "A": 40.84,
  "B.last_checkpoint": 40.81,
  "C.001": 43.87,
  "C.001.last_checkpoint": 43.72
}
]

from miller.

SamuelLarkin avatar SamuelLarkin commented on June 8, 2024

Here's another example where we see the . hierarchy shadowing substrings.

expt_name,A,B.last_checkpoint,C.001,C.001.last_checkpoint
lr=1.0e-5_e=16/000,40.93,39.75,44.05,43.13
lr=1.0e-5_e=16/001,41.09,41.11,43.81,43.82
lr=1.0e-5_e=16/002,40.84,40.81,43.87,43.72
mlr --icsv --ojson cat < mlr.bug.2.csv
[
{
  "expt_name": "lr=1.0e-5_e=16/000",
  "A": 40.93,
  "B": {
    "last_checkpoint": 39.75
  },
  "C": {
    "001": {
      "last_checkpoint": 43.13
    }
  }
},
{
  "expt_name": "lr=1.0e-5_e=16/001",
  "A": 41.09,
  "B": {
    "last_checkpoint": 41.11
  },
  "C": {
    "001": {
      "last_checkpoint": 43.82
    }
  }
},
{
  "expt_name": "lr=1.0e-5_e=16/002",
  "A": 40.84,
  "B": {
    "last_checkpoint": 40.81
  },
  "C": {
    "001": {
      "last_checkpoint": 43.72
    }
  }
}
]

from miller.

aborruso avatar aborruso commented on June 8, 2024

Please read this https://miller.readthedocs.io/en/6.11.0/reference-main-flag-list/index.html#flatten-unflatten-flags

The way to do it, is to use --no-auto-unflatten flag. Running

mlr --c2j --no-auto-unflatten cat input.csv

you get

[
  {
    "expt_name": "lr=1.0e-5_e=16/000",
    "baseline-final-test": 40.93,
    "baseline-final-test.last_checkpoint": 39.75,
    "stage-all.001": 44.05,
    "stage-all.001.last_checkpoint": 43.13
  },
  {
    "expt_name": "lr=1.0e-5_e=16/001",
    "baseline-final-test": 41.09,
    "baseline-final-test.last_checkpoint": 41.11,
    "stage-all.001": 43.81,
    "stage-all.001.last_checkpoint": 43.82
  },
  {
    "expt_name": "lr=1.0e-5_e=16/002",
    "baseline-final-test": 40.84,
    "baseline-final-test.last_checkpoint": 40.81,
    "stage-all.001": 43.87,
    "stage-all.001.last_checkpoint": 43.72
  }
]

from miller.

aborruso avatar aborruso commented on June 8, 2024

@SamuelLarkin what do you think about Miller? Have you been using it for a long time?

from miller.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.