{
  "id": 614102,
  "title": "Is a metric script provided? ",
  "url": "/competitions/csiro-biomass/discussion/614102",
  "author_name": "Quan Vu",
  "post_date": "2025-11-01T06:00:23.353000",
  "votes": 2,
  "comment_count": 5,
  "views": 0,
  "content": "<p>Like the example here: <a href=\"https://www.kaggle.com/code/metric/mean-weighted-columnwise-aucroc\" target=\"_blank\">https://www.kaggle.com/code/metric/mean-weighted-columnwise-aucroc</a>. I am having difficulty calculating the metrics. The results I obtain are quite different from those on the public leaderboard.</p>",
  "messages": [
    {
      "id": 3309760,
      "postDate": "2025-11-01T10:28:59.230Z",
      "content": "<p>We use the wrapper for scikit-learn’s <a href=\"https://scikit-learn.org/stable/modules/generated/sklearn.metrics.r2_score.html\" target=\"_blank\">r2_score</a>. You can find the metric script <a href=\"https://www.kaggle.com/code/metric/r2-score?scriptVersionId=151169785\" target=\"_blank\">here</a></p>",
      "rawMarkdown": "We use the wrapper for scikit-learn’s [r2_score](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.r2_score.html). You can find the metric script [here](https://www.kaggle.com/code/metric/r2-score?scriptVersionId=151169785)",
      "votes": 3,
      "replies": [
        {
          "id": 3311326,
          "postDate": "2025-11-04T18:23:14.100Z",
          "content": "<p>So, a log transfomation is not included in the R-squared calculations?\nI ask because the <a href=\"https://arxiv.org/abs/2510.22916\" target=\"_blank\">\"Estimating Pasture…\"</a> paper's section \"4.5 Evaluation Protocol\" says that \"a log-stabilizing transformation is applied to all target variables before computing R-squared values: y_trans = log(1+y)\". Was it decided not to do this after all?</p>",
          "rawMarkdown": "So, a log transfomation is not included in the R-squared calculations?\nI ask because the [\"Estimating Pasture...\"](https://arxiv.org/abs/2510.22916) paper's section \"4.5 Evaluation Protocol\" says that \"a log-stabilizing transformation is applied to all target variables before computing R-squared values: y_trans = log(1+y)\". Was it decided not to do this after all?",
          "replies": [
            {
              "id": 3311332,
              "postDate": "2025-11-04T18:36:31.170Z",
              "rawMarkdown": "",
              "isDeleted": true
            },
            {
              "id": 3311346,
              "postDate": "2025-11-04T19:18:32.593Z",
              "content": "<p>I understand that the Kaggle pages are the official source ✅ 🙂 . . . \nfyi, the paper is listed in the Citation on the Data page.\nI just wanted to check, in case it was an oversight and the competition host, <a href=\"https://www.kaggle.com/qiyuliaocsiro\" target=\"_blank\">@qiyuliaocsiro</a> , really wanted to use the log(1+y) transformation. Thanks.</p>",
              "rawMarkdown": "I understand that the Kaggle pages are the official source ✅ 🙂 . . . \nfyi, the paper is listed in the Citation on the Data page.\nI just wanted to check, in case it was an oversight and the competition host, @qiyuliaocsiro , really wanted to use the log(1+y) transformation. Thanks."
            }
          ]
        },
        {
          "id": 3311355,
          "postDate": "2025-11-04T19:52:33.440Z",
          "content": "<p><a href=\"https://www.kaggle.com/martynaplomecka\" target=\"_blank\">@martynaplomecka</a> , Sorry for my chatter here: I was reading the discussion posts in Recently Posted order so I had not yet gotten to the other metric discussion posts and the resolution of the <strong>scoring metric, clearly given on the Overview page</strong>. Thank you.</p>",
          "rawMarkdown": "@martynaplomecka , Sorry for my chatter here: I was reading the discussion posts in Recently Posted order so I had not yet gotten to the other metric discussion posts and the resolution of the **scoring metric, clearly given on the Overview page**. Thank you.",
          "votes": 1
        }
      ]
    },
    {
      "id": 3309658,
      "postDate": "2025-11-01T06:00:23.353Z",
      "content": "<p>Like the example here: <a href=\"https://www.kaggle.com/code/metric/mean-weighted-columnwise-aucroc\" target=\"_blank\">https://www.kaggle.com/code/metric/mean-weighted-columnwise-aucroc</a>. I am having difficulty calculating the metrics. The results I obtain are quite different from those on the public leaderboard.</p>",
      "rawMarkdown": "Like the example here: https://www.kaggle.com/code/metric/mean-weighted-columnwise-aucroc. I am having difficulty calculating the metrics. The results I obtain are quite different from those on the public leaderboard.",
      "votes": 2
    }
  ],
  "comments": [
    {
      "id": 3309760,
      "author_name": "MartynaPlomecka",
      "author_url": "",
      "post_date": "2025-11-01T10:28:59.230000",
      "content": "<p>We use the wrapper for scikit-learn’s <a href=\"https://scikit-learn.org/stable/modules/generated/sklearn.metrics.r2_score.html\" target=\"_blank\">r2_score</a>. You can find the metric script <a href=\"https://www.kaggle.com/code/metric/r2-score?scriptVersionId=151169785\" target=\"_blank\">here</a></p>",
      "votes": 3,
      "replies": [
        {
          "id": 3311326,
          "author_name": "Daniel Dewey",
          "author_url": "",
          "post_date": "2025-11-04T18:23:14.100000",
          "content": "<p>So, a log transfomation is not included in the R-squared calculations?\nI ask because the <a href=\"https://arxiv.org/abs/2510.22916\" target=\"_blank\">\"Estimating Pasture…\"</a> paper's section \"4.5 Evaluation Protocol\" says that \"a log-stabilizing transformation is applied to all target variables before computing R-squared values: y_trans = log(1+y)\". Was it decided not to do this after all?</p>",
          "votes": 0,
          "replies": [
            {
              "id": 3311332,
              "author_name": "",
              "author_url": "",
              "post_date": "2025-11-04T18:36:31.170000",
              "content": "",
              "votes": 0,
              "replies": []
            },
            {
              "id": 3311346,
              "author_name": "Daniel Dewey",
              "author_url": "",
              "post_date": "2025-11-04T19:18:32.593000",
              "content": "<p>I understand that the Kaggle pages are the official source ✅ 🙂 . . . \nfyi, the paper is listed in the Citation on the Data page.\nI just wanted to check, in case it was an oversight and the competition host, <a href=\"https://www.kaggle.com/qiyuliaocsiro\" target=\"_blank\">@qiyuliaocsiro</a> , really wanted to use the log(1+y) transformation. Thanks.</p>",
              "votes": 0,
              "replies": []
            }
          ]
        },
        {
          "id": 3311355,
          "author_name": "Daniel Dewey",
          "author_url": "",
          "post_date": "2025-11-04T19:52:33.440000",
          "content": "<p><a href=\"https://www.kaggle.com/martynaplomecka\" target=\"_blank\">@martynaplomecka</a> , Sorry for my chatter here: I was reading the discussion posts in Recently Posted order so I had not yet gotten to the other metric discussion posts and the resolution of the <strong>scoring metric, clearly given on the Overview page</strong>. Thank you.</p>",
          "votes": 1,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "3309760": "We use the wrapper for scikit-learn’s [r2_score](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.r2_score.html). You can find the metric script [here](https://www.kaggle.com/code/metric/r2-score?scriptVersionId=151169785)",
    "3309658": "Like the example here: https://www.kaggle.com/code/metric/mean-weighted-columnwise-aucroc. I am having difficulty calculating the metrics. The results I obtain are quite different from those on the public leaderboard."
  }
}