\begin{slide}[method=file,toc=Eg3: SILAP]{Eg3: SILAP: Early Life cycle Severity Detection}
	\bi
\item NASA defect data: 5 projects,		(Menzies et.al 2007)
\item SILAP: predict error \{potential, consequence\} from project description
\ei

\begin{center}
{\scriptsize	\begin{tabular}{|r@{~=~}p{2.5cm}|r@{~=}p{3.5cm}|}\hline
\multicolumn{2}{|c|}{Derived}&
\multicolumn{2}{|c|}{Raw features}\\\hline
	co&Consequence&

am&Artifact Maturity\\

	dv&Development&


as&Asset Safety\\

	ep&Error Potential& 

cl&CMM Level\\
	pr&Process&
cx&Complexity\\
	sc&Software Characteristic& 
di&Degree of Innovation\\

\multicolumn{2}{|c|}{~}&do&Development Organization\\
\multicolumn{2}{|c|}{~}&dt&Use of Defect  Tracking System\\
\multicolumn{2}{|c|}{~}&	ex&Experience \\
\multicolumn{2}{|c|}{~}&	fr&Use of Formal Reviews\\
\multicolumn{2}{|c|}{~}&	hs&Human Safety\\
\multicolumn{2}{|c|}{~}&	pf&Performance\\
\multicolumn{2}{|c|}{~}&	ra&Re-use Approach\\
\multicolumn{2}{|c|}{~}&	rm&Use of Risk Management System\\
\multicolumn{2}{|c|}{~}&	ss&Size of  System\\
\multicolumn{2}{|c|}{~}&	uc&Use of Configuration Management\\
\multicolumn{2}{|c|}{~}&	us&Use of Standards\\\hline
\end{tabular}}
\end{center}
{\scriptsize \begin{verbatim} 
function CO( tmp)    { tmp=0.35*AS + 0.65 *PF; return (round((HS) < tmp) ? HS : tmp) 
function EP()        { return round(0.579*DV() + 0.249*PR() + 0.172*SC())}  
function SC()        { return 0.547*CX + 0.351*DI + 0.102*SS  }
function DV()        { return 0.828*EX + 0.172*DO } 
function PR()        { return 0.226*RA + 0.242*AM + formality()  }
function formality() { return 0.0955*US+ 0.0962*UC+ 0.0764*CL + 0.1119*FR +0.0873*DT + 0.0647*RM}
\end{verbatim}
}

\end{slide}
\begin{slide}[toc=Eg3 (more)]{Eg3: $2^F$ FSS + RIPPER + SILAP data (211 components on 5 projects)}
\begin{center}
{\scriptsize
\begin{tabular}{r@{~}|l@{}r|r@{~}r@{~}r@{~}r|r@{~}l@{~}r}
\multicolumn{3}{c}{~}&\multicolumn{4}{c}{severity predictions }& \\
\multicolumn{3}{c}{~}&\multicolumn{4}{c}{a=pd, b=prec }& \\
\multicolumn{3}{c}{~}&\multicolumn{4}{c}{$x=2ab/(a+b)$ }& \\\cline{4-7}
&features	&$|F|$&\_12	&\_3	&\_4	&\_5	& \multicolumn{2}{l}{$X= \left(\sum x\right)/4$}&\\\cline{1-9}
    &               &  &    &       &      &        &    &                 &\\
A	&all - L1 - L2 - group(6)	&8&0.97	&0.95	&0.97	&0.99	&0.97&\rule{24mm}{2mm} &\\
B	&all  - L1 - L2 - group(5 + 6)	&7&0.95	&0.94	&0.97	&0.96	&0.96&\rule{24mm}{2mm}\\\
C	&all - L1 - L2 - group(4 + 5 + 6)	&6&0.93	&0.95	&0.98	&0.93	&0.95& \rule{24mm}{2mm}\\
D	&all - L1 - L2  	&16&0.94	&0.94	&0.93	&0.96	&0.94&\rule{23mm}{2mm}\\
E	&all - L1 - L2 - group(3 + 4 + 5 + 6)	&4&0.93	&0.97	&0.90	&0.87	&0.92& \rule{23mm}{2mm} \\
%F	&L1+ L2	&2&0.96	&0.89	&0.97	&0.70	&0.88&\rule{44mm}{2mm}\\
F	&\{co*ep, co, ep\}	&3&0.94	&0.84	&0.55	&0.70	&0.76&\rule{19mm}{2mm}\\
G	&L1	&1&0.67	&0.69	&0.00	&0.46	&0.45&\rule{11mm}{2mm}\\
H	&just "us"	&1&0.64	&0.60	&0.00	&0.00	&0.31&\rule{7mm}{2mm}\\
I	&L2	&1&0.57	&0.00	&0.32	&0.00	&0.22&\rule{5mm}{2mm}
\end{tabular}
}
\end{center}

~\\~\\

Rules from ``E'': {\footnotesize
\begin{tabular}{|@{~rule~}rrl@{~then ~}l|}\hline
1&if&  $uc \ge 2 \wedge us =1$    & severity = 5\\
2&else if&  $am = 3$ & severity = 5 \\
3&else if&  $uc \ge 2 \wedge am=1 \wedge us \le 2$ & severity = 5\\
4&else if&  $am=1 \wedge us=2$  & severity = 4    \\
5&else if&  $us=3 \wedge ra \ge 4$ & severity = 4  \\
6&else if&  $us=1$ & severity = 3        \\
7&else if&  $ra=3$ & severity = 3            \\
8&else if&  true & severity = 1 or 2           \\\hline   
\end{tabular}}
\end{slide}

%\begin{tabular}{|r@{~=~}p{2.5cm}|r@{~=}p{4.1cm}|}\hline
%\multicolumn{2}{|c|}{Derived}&
%\multicolumn{2}{|c|}{Raw features}\\\hline
%	co&Consequence&
%
%am&Artifact Maturity\\
%
%	dv&Development&
%
%
%as&Asset Safety\\
%
%	ep&Error Potential& 
%
%cl&CMM Level\\
%	pr&Process&
%cx&Complexity\\
%	sc&Software Characteristic& 
%di&Degree of Innovation\\
%
%\multicolumn{2}{|c|}{~}&do&Development Organization\\
%\multicolumn{2}{|c|}{~}&dt&Use of Defect  Tracking System\\
%\multicolumn{2}{|c|}{~}&	ex&Experience \\
%\multicolumn{2}{|c|}{~}&	fr&Use of Formal Reviews\\
%\multicolumn{2}{|c|}{~}&	hs&Human Safety\\
%\multicolumn{2}{|c|}{~}&	pf&Performance\\
%\multicolumn{2}{|c|}{~}&	ra&Re-use Approach\\
%\multicolumn{2}{|c|}{~}&	rm&Use of Risk Management System\\
%\multicolumn{2}{|c|}{~}&	ss&Size of  System\\
%\multicolumn{2}{|c|}{~}&	uc&Use of Configuration Management\\
%\multicolumn{2}{|c|}{~}&	us&Use of Standards\\\hline
%\end{tabular} 
