GainRatio(S, A) SplitInformation(S, A) Where c Si Si SplitInformation(S, A) − log2…
- User
GainRatio(S, A) SplitInformation(S, A) Where c |Si | |Si | SplitInformation(S, A) − log2 i=1 |S | |S | • Si are the sets obtained by partitioning on value vi of A, up to c values • SplitInformation measures the entropy of S with respect to the values of A. The more uniformly dispersed the data the higher it is. • GainRatio penalizes attributes that split examples in many small classes such as Date. Let |S |=n, Date splits examples in n subsets. • SplitInformation(S, Date)= −[(1/n log2 1/n)+…+ (1/n log2 1/n)]= −log21/n =log2n which is > 1 for n>2 → we reduce the GainRatio • Compare with an A which splits data in two even classes (with (n/2)/n= ½): • SplitInformation(S, A)= − [(½ log2½)+ (½ log2½) ]= − [− ½ −½]=1 → no reduct.
spiega un attimo i concetti
- Assistant
- User
Adjusting gain University of Pisa -ratio • Problem: SplitInformation(S, A) can be zero or very small when |Si | ≈ |S | for some value i [log 1 =0] – E.g. An extreme case with |S1 |=0 |S2 |=n – SplitInformation = - [0/n * log 0/n + n/n * log n/n] = - 0 - 0 = 0 – E.g. an attribute with the same value for the examples, not good indeed (not informative)! • To mitigate this effect, the following heuristics has been used:
- compute Gain for each attribute
- apply GainRatio only to attributes with Gain above average • Other measures have been proposed, …see Mitchel book
Spiegami il concetto di questa slide
- Assistant
- User
Non ho capito cosa provoca avere lo splitinfotmation a 0?
- Assistant
Avere lo SplitInformation a 0 si verifica in situazioni specifiche durante la crezione di un albero decisionale, in cui la divisione del set di dati, basata su un certo attributo, non contribuisce a un'effettiva separazione dei dati in termini di informazione. Questo accade tipicamente in due scenari:
- User
Hp Space Search in DT learning A. Micheli 21 Hp space search by ID3, Search (hill-climbing) through the space of possible DT from simplest to increasingly complex W.r.t. to previous alg. (Cand. Elimin.): ▪ The hypotheses space is complete (represents all discrete-valued functions) ▪ The search maintains a single current hypothesis ▪ No backtracking; no guarantee of optimality (local optima) ▪ It uses all the available examples (not incremental) ▪ May terminate earlier, accepting noisy classes
Spiegami i concetti di questa slide
- Assistant
- User
Inductive bias in DT learning University of Pisa ▪ What is the inductive bias of DT learning?
- Shorter trees are preferred over longer trees Due to simple-to-complex search, incremental. Not enough. This is the bias exhibited by a simple breadth first algorithm generating all DT's and selecting the shorter consistent one
- Prefer trees that place high information gain attributes close to the root ▪ Note: DT's are not limited in representing all possible functions. ▪ The restriction is not over the Hp space, it is on the search strategy
Spiega un pochino
- Assistant
- User
Non consideri come bias il preferire alberi corti a più lunghi?
- Assistant
Sì, la preferenza per alberi più corti rispetto a quelli più lunghi è effettivamente considerata un tipo di inductive bias nell'apprendimento degli alberi decisionali. Per essere più chiari, questo bias è fondamentale e intenzionale nell'approccio alla creazione degli alberi decisionali perché mira a produrre modelli che sono non solo accurati ma anche semplici e interpretabili. La ragione dietro questo bias si rifà al principio di Occam, o la navaja de Occam (rasoio di Occam), che sostiene che tra diverse spiegazioni plausibili per lo stesso fenomeno, la spiegazione più semplice tende ad essere quella corretta.
- User
Quindi ci sono due bias: preferire alberi più corti e quelli che Posizionano Attributi con Alto Guadagno d’Informazione Vicino alla Radice:
- Assistant
Esattamente, nell'ambito dell'apprendimento degli alberi decisionali (DT, Decision Trees), possiamo identificare due preconcetti induttivi principali o "inductive biases":
-
La preferenza per alberi più corti: Questo bias si basa sul principio di semplicità, preferendo modelli meno complessi che tentano di spiegare i dati in maniera efficace. Gli alberi più corti sono generalmente più facili da interpretare e tendono ad avere una migliore capacità di generalizzazione su nuovi dati rispetto agli alberi più lunghi e complessi, che possono soffrire di overfitting. Questo preconcetto è una manifestazione del rasoio di Occam nell'apprendimento degli alberi decisionali: se due alberi spiegano ugualmente bene i dati, quello più semplice (più breve) è preferito.
-
- User
Two kinds of Biases University of Pisa ▪ Preference or search biases (due to the search strategy) ▪ ID3 searches a complete hypotheses space; the search strategy is incomplete ▪ Restriction or language biases (due to the set of hypotheses expressible or considered) ▪ Candidate-Elimination searches an incomplete hypotheses space; the search strategy is complete (all the consistent hp, VS) ▪ A combination of biases in learning a linear models (Why? Exercise). Why the search bias can be preferred over the language bias? ▪ In ML typically uses flexible approaches (universal capability of the models), without excluding a priori the unknown target function ▪ Of course, flexible → take care of the overfitting issue !
Spiega
- Assistant
- User
Prefer shorter hypotheses: Occam's razor ▪ Why prefer shorter hypotheses? • Again …. The Occam (Ockham) razor (1300!)… “The simplest explanation is more likely the correct one” Or “prefer the simplest hypothesis that fits the data” ▪ Lex parsimoniae ("law of parsimony", "law of economy", or "law of succinctness") ▪ The term razor refers to the act of shaving away unnecessary assumptions to get to the simplest explanation. • Remember the “control of model complexity” by regularization for linear models • Again …This fundamental concept in ML will be found again and we will “rationalize” it at the end (to quantify it see #ML)
Spiega
- Assistant
- User
Issues in decision trees learning ▪ Overfitting * ▪ Early stopping ▪ Reduced error pruning ▪ Rule post-pruning ▪ Extensions (specific for DT) ▪ Alternative measures for selecting attributes [done] ▪ Continuous valued attributes ▪ Handling training examples with missing attribute values ▪ Handling attributes with different costs ▪ Improving computational efficiency Most of these improvements in C4.5 (Quinlan, 1993)
Spiega il concetto dietro queste slide
- Assistant