Beruflich Dokumente
Kultur Dokumente
I. INTRODUCTION
Management activity within organizations has suffered
significant modifications in the context of information
society development and the new computer technologies
have beneficially influenced the most important domain of
this activity, decision making. Decision tasks become harder
and harder to achieve without the support of computer-based
instruments known as decision support systems.
We seek to present a new approach regarding the
development of decision support systems, emphasizing new
directions in decision algorithms implementation through an
expandable system designed with respect to advanced
principles of software engineering. The proposed approach
comes as a retort to trends imposed by the current software
technologies and allows the implementation of decision
support systems using new Machine Learning technologies.
The proposed system aims to be a framework for a
decision support system that will allow implementing all
sorts of algorithms with the purpose of helping the decision
makers in solving complex decision problems. With this in
mind, the system is designed with the greatest respect to the
Design Patterns [3], with increased levels of reusability.
II. MATERIAL AND METHODS
GUI
kernel
63
ML.Core
basic class
assembly
ML.Core.Relations
relation class
assembly
ML.Core.Algorithms
algorithm class
assembly
64
Journal of Applied Computer Science & Mathematics, no. 10 (5) /2011, Suceava
XML DOCUMENT
RELATION
INSTANCES
ATTRIBUTES
name
type
In the next code section we exemplified the element type definition Relation, as described in the XML schema:
<xs:element name="Relation">
<xs:complexType>
<xs:sequence>
<xs:element name="Attributes" type="AttributesType" />
<xs:element name="Instances" type="InstancesType" />
</xs:sequence>
<xs:attribute name="name" type="xs:string" />
</xs:complexType>
</xs:element>
Each attributes definition includes the name and type of the attribute (enumerate integer, real, Boolean etc.), the type being
defined in the XML schema as follows:
<xs:simpleType name="AttributeTypesType">
<xs:restriction base="xs:string">
<xs:enumeration value="enumerated" />
<xs:enumeration value="integer" />
<xs:enumeration value="real" />
<xs:enumeration value="boolean" />
</xs:restriction>
</xs:simpleType>
65
For enumerating values, the possible values will be defined as a list of subelements of the Attribute element, according to the
next example:
<Attribute name="education" type="enumerated">
<EnumeratedValue value="high school" />
<EnumeratedValue value="bachelors" />
<EnumeratedValue value="masters" />
</Attribute>
The instances, representing input data, will appear as a sequence of Instance type elements, with attributes of the types
defined in the attribute definition section.
The content of an Instance type element will not be validated using the XML schema, being allowed to have any form, its
validation being fulfilled by the application. The InstanceType element will be define as follows:
<xs:complexType name="InstanceType">
<xs:anyAttribute processContents="skip" />
</xs:complexType>
Unknown attributes, of the missing type, will not be specified within the XML document as attributes of the Instance
element. In the graphical user interface, in case of the appearance of missing attributes of an instance, they will be signaled
using the ? character.
Within the next code section one could notice the way the considered instances are specified, by assigning a value to each
defined attribute.
<Instances>
<Instance age="36-55" education="masters" income="high" marital status="single"
purchase?="yes" />
<Instance age="18-35" education="high school" income="low" marital
status="single" purchase?="no" />
<Instance age="36-55" education="masters" income="low" marital status="single"
purchase?="yes" />
<Instance age="18-35" education="bachelors" income="high" marital
status="single" purchase?="no" />
<Instance age="<18" education="high-school" income="low" marital status="single"
purchase?="yes" />
<Instance age="18-35" education="bachelors" income="high" marital
status="married" purchase?="no" />
<Instance age="36-55" education="bachelors" income="low" marital
status="married" purchase?="no" />
<Instance age=">55" education="bachelors" income="high" marital status="single"
purchase?="yes" />
<Instance age="36-55" education="masters" income="low" marital status="married"
purchase?="no" />
<Instance age=">55" education="masters" income="low" marital status="married"
purchase?="yes" />
<Instance age="36-55" education="masters" income="high" marital status="single"
purchase?="yes" />
<Instance age=">55" education="masters" income="high" marital status="single"
purchase?="yes" />
</Instances>
algorithm (k-Nearest Neighbor) are implemented (Figure 4).
III. RESULTS AND DISCUSSION
Following the ideology of developing strongly objectThe solution for implementing the system is presented in
oriented software and of the design patterns we considered
detail, depicting the XML entities and the top-down model
appropriate to create a separate class for almost all of the
implemented within the class library of the framework
XML element types that make up the input relation
which makes sure of its expandable and reusable character.
document. The alternative would have consisted of
The base abstract classes for algorithms are implemented,
processing all of the XML elements solely at the
and to prove the correctness of their functionality a decision
RelationDocument class level and probably using NET
tree algorithm (ID3) and training instance-based learning
XML DOM classes (XmlElement, XmlAttribute, XmlNode
66
Journal of Applied Computer Science & Mathematics, no. 10 (5) /2011, Suceava
67
Cristina Ofelia STANCIU Lecturer, Faculty of Economics, Tibiscus University in Timisoara, Romania. She has obtained her
B.E. in Computer Science in 2004, Masters Degree in Economics in 2006 and Ph.D. in Economics in 2010. Her research areas
of interest are Decision Support Systems, Artificial Intelligence and Machine Learning.
Ioan tefan NICHI Professor, Faculty of Economics and Business Administration, Babes Bolyai University in Cluj Napoca,
Romania. He has obtained his Bachelor Degree in Computing Machines in 1966 and Ph.D. in Mathematics in 1990. He has
published 13 books and 106 research papers and has been involved in almost 100 grants and research projects. His research
areas of interest are Information Systems, Data Mining, Artificial Intelligence, Business Intelligence, Machine Learning,
Software Engineering.
68