question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

how to organize loss functions

See original GitHub issue

_Originally posted by @cwhanse in https://github.com/pvlib/pvlib-python/pull/764_

junk drawer of loss models.

Nice metaphor.

Editorial: Let me just state that I think the PVsyst-style “loss diagrams” do somewhat of a disservice, by applying the term “loss” to quantities of energy that couldn’t have been generated in the first place. An example that’s not a loss (IMO) is “temperature loss”; the physical reality is that cells are less efficient at higher temperature and hot air happens. There’s only a “temperature loss” if the PV system could operate at lower temperature but doesn’t.

If we follow the modeling process diagram, which is a guide not a rule, a module dc_losses could contain functions for wiring and mismatch losses, but not soiling, since soiling applies to irradiance not DC current. Debatable whether snow_coverage is an effect on DC current or on irradiance.

It seems that pvlib will have multiple modules soiling.py, snow.py, mismatch.py or dc_losses.py etc. at some level, and the question is about grouping these modules into a losses folder, or not. @wholmgren’s question suggests we should agree on a list of these modules, and maybe it will become more clear where to place them.

Here’s an attempt to list categories for functions that could be broadly termed losses using my view of that term:

  • irradiance reflection (iam.py)
  • soiling
  • snow
  • shading (could overlap with DC losses)
  • mismatch (cell to cell and module-to-module variation, also irradiance variation?)
  • DC wiring
  • inverter MPPT efficiency (not part of the current inverter models, but could be)
  • tracker accuracy
  • grid support functions (e.g., use of reactive power as voltage control)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
wholmgrencommented, Mar 17, 2020

or should we discard losses.py in favor of soiling.py, snow.py, etc

+1

1reaction
steve-ransomecommented, Mar 2, 2020

I’m working on it at the moment ! I hope to talk about it and demonstrate it in Salt Lake City

Read more comments on GitHub >

github_iconTop Results From Across the Web

PyTorch Loss Functions: The Ultimate Guide - neptune.ai
This loss function computes the difference between two probability distributions for a provided set of occurrences or random variables. It is ...
Read more >
Overview of loss functions for Machine Learning - Medium
Loss functions take predictions and compare them with the actual value or label of the data by outputting an error metric.
Read more >
Loss Functions | Machine Learning - Google Developers
Stay organized with collections Save and categorize content based on your preferences. GANs try to replicate a probability distribution. They ...
Read more >
Loss Functions in Deep Learning: An Overview
Regression Loss Function · 1.Mean Squared Error · 2.Mean Squared Logarithmic Error Loss · 3.Mean Absolute Error Loss · Binary Classification Loss ...
Read more >
Decoding Advanced Loss Functions in Machine Learning
Every Machine Learning algorithm (Model) learns by the process of optimizing the loss functions. The loss function is a method of evaluating ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found