ΕπόμενοΕπόμενος οδηγός
Απώλεια τριπλής και μετρική εκμάθηση
Βασικές αρχές
ΟΔΗΓΟΣ Βασικών Αρχών
A loss defines the objective used to assess predictions or another training target.
Ακούστε αυτόν τον οδηγόαφήγηση με AI · ~3 min
Individual loss values are often combined into a scalar for optimization, and the chosen objective is a proxy that may differ from the application's evaluation metric.
A prediction loss compares outputs with training targets according to a specified rule. Those targets can be labels or values constructed for the learning task; they should not automatically be called unquestionable truth. Implementations may produce per-example losses and then sum or average them for an optimization step. Choosing the rule matters. Mean squared error averages squared residuals, giving large residuals more influence than mean absolute error, which averages their absolute values. For residuals one and three, mean squared error is five, while mean absolute error is two. These are illustrative calculations rather than performance results from a dataset. Classification commonly uses cross-entropy. With a one-hot target and a predicted probability p for its class, the loss is minus log p. A lower probability for the target class gives a larger loss, so confident wrong predictions can incur high loss. The logarithm base determines the units: base-two loss is in bits, while a natural logarithm gives nats. For a target probability of one-quarter, minus log-base-two p is two bits. Gradient-based optimization needs usable derivative information, but differentiability requirements should not be generalized to every learning algorithm. Some losses have nondifferentiable points handled by an appropriate subgradient or surrogate. Accuracy is a discrete evaluation metric and is generally not directly useful as a gradient-training objective. A suitable training loss supplies an optimization signal; final task quality needs evaluation using the relevant metrics.
Χρήση απώλειας διασταυρούμενης εντροπίας για την εκπαίδευση ενός ταξινομητή ανεπιθύμητης αλληλογραφίας που τιμωρεί τις εσφαλμένες ταξινομήσεις
Επιλέγοντας το μέσο απόλυτο σφάλμα για την πρόβλεψη της τιμής του σπιτιού, ώστε μερικές ακραίες επαύλεις να μην κυριαρχούν στην εκπαίδευση
Εφαρμόζοντας μια απώλεια αντίθεσης ώστε ένα μοντέλο αναγνώρισης προσώπου να συγκεντρώνει εικόνες του ίδιου ατόμου
Σχεδιάζοντας μια απώλεια μοντέλου ανταμοιβής για να κατευθύνετε ένα chatbot προς πιο χρήσιμες και ειλικρινείς απαντήσεις
Objective design can combine prediction terms, regularization, and other task requirements. Comparisons should state the target definition, formula, reduction, units, and evaluation metric. An objective can decrease while an application metric remains unchanged or worsens, so improvement should be measured rather than inferred from training loss alone. Custom losses need examination of the behavior they encourage as well as their numerical and optimization properties.
Δωρεάν ενημερωτικό δελτίο
Τρία επαληθευμένα νέα AI κάθε πρωί της εβδομάδας, γραμμένα σε απλή αγγλική. Δωρεάν για πάντα, χωρίς διαφημίσεις.
Ένα email κάθε εργάσιμη ημέρα. Κατάργηση συνδρομής με ένα κλικ. Δεν πουλάμε ή μοιραζόμαστε ποτέ τη διεύθυνσή σας.
Δοκιμάστε τον εαυτό σας
Άμεση ανάδραση σε κάθε απάντηση, και πιστοποιητικό με επαληθεύσιμο ID μόλις περάσετε το μάθημα.
Υποστηρίξτε τη δωρεάν εκπαίδευση AI. AI Understanding είναι μια μη κερδοσκοπική οργάνωση 501(c)(3) — χωρίς διαφημίσεις, χωρίς τοίχο πληρωμής, ποτέ. Κάντε μια δωρεά
A loss defines the objective used to assess predictions or another training target. Individual loss values are often combined into a scalar for optimization, and the chosen objective is a proxy that may differ from the application's evaluation metric.
A loss defines a training objective; it does not automatically measure every aspect of application quality.
Η διασταυρούμενη εντροπία συγκρίνει τις προβλεπόμενες κατανομές πιθανοτήτων με τις πραγματικές ετικέτες και είναι η τυπική επιλογή για ταξινόμηση.
Το μέσο απόλυτο σφάλμα αντιμετωπίζει όλα τα σφάλματα αναλογικά αντί να τα τετραγωνίζει, επομένως μερικές ακραίες ακραίες τιμές έχουν μικρότερη επιρροή.
This concerns gradient-based training, not a claim that every possible learning algorithm requires a differentiable loss.
The term minus log p grows as the target-class probability shrinks. This does not guarantee a particular gradient magnitude for every model weight.
Συνέχισε να μαθαίνεις
Επιλέχθηκαν περισσότεροι οδηγοί για αυτό το θέμα
ΕπόμενοΕπόμενος οδηγός
Απώλεια τριπλής και μετρική εκμάθηση
Βασικές αρχές