E-Commerce Recommendation Model Design
E-Commerce Recommendation Model Design
B. RAMMOHAN (199L1A0513)
N. CHARAN (199X1A05A5)
M. RAJU (199L1A0542)
BACHELOR OF TECHNOLOGY
in
Computer Science and Engineering
Under the Guidance of
Dr B. NARAYANA BABU
Associate Professor, Department of CSE.
(2022-2023)
SIDDARTHA EDUCATIONAL ACADEMY GROUP OF INSTITUTIONS
C. Gollapalli (v), Tirupati - 517 505
CERTIFICATE
Viva-Voice held on
All endeavors over a long period can be successful only with the advice and support of many well-
wishers. I take this opportunity to express my gratitude and appreciation to all of them. we wish to
express deep sense of gratitude to my beloved and respected guide Dr B. NARAYANA BABU,
Associate Professor of CSE, Siddartha Educational Academy Group of Institutions, Tirupati, for his
valuable guidance, suggestions and constant encouragement and keen interest enriched throughout
the course of project work.
We extend sincere thanks to the HoD Mr. N. ANAND REDDY for his kind co- operation in
completing and making this project a success.
We extend sincere thanks to the Principal, Prof. K. RAJASEKHAR for his kind co- operation in
completing and making this project a success.
We would like to thank the Management for their kind co-operation and for providing infrastructure
facilities.
We extend thanks to all the Teaching staff of the Department of CSE for their support and
encouragement during the course of my project work. I also thank the non-Teaching staff of CSE
department for being helpful in many ways in successful completion of my work.
Finally, I thank all those who helped me directly or indirectly in successful completion of this project
work.
B. RAMMOHAN (199L1A0513)
[Link] (199X1A05A5)
M. RAJU (199L1A0542)
SIDDARTHA EDUCATIONAL ACADEMY GROUP OF INSTITUTIONS
Declaration
I hereby declare that the project work entitled “DESIGN AND IMPLEMENTATION OF
E-COMMERCE RECOMMENDATION MODEL BASED ON CLOUD COMPUTING” is
entirely my original work carried out under the guidance of Dr B. NARAYANA BABU,
Department of Computer Science and Engineering, Siddartha Educational Academy Group of
Institutions, C. Gollapalli, Tirupati, JNTUAnantapur, A.P, India for the award of the degree of
BACHELOR OF TECHNOLOGY withthe specialization in COMPUTER SCIENCE AND
ENGINEERING. The results carried out in this project report have not been submitted in a part
or full for the award of any degree or diploma of this or any other university or institute.
B. RAMMOHAN (199L1A0513)
N. CHARAN (199X1A05A5)
M. RAJU (199L1A0542)
ABSTRACT
With the continuous expansion of the company's scale, the original offline sales model can no longer meet
the demand. In order to keep up with the current trend of Internet technology, companies need to develop
their own e-commerce platform. With the rapid development of e-commerce, its information structure is
becoming more and more complex, and the amount of information is becoming larger and larger. Users are
often lost in massive commodity information, and merchants cannot establish effective customer
relationships in massive user information. In order to improve the service level and market competitiveness
of Internet commerce, many ecommerce websites begin to introduce data mining technology. According to
users' purchase records and historical browsing records, they can find the goods they like and recommend
them to users. In order to manage massive commodity information and user information more efficiently,
this paper proposes a solution to build e-commerce recommendation system on the cloud computing
platform to improve the ability of massive data mining and business intelligence analysis, and realize high-
performance computing at a lower cost.
CONTENTS
1. INTRODUCTION 1-2
Feasibility Study
Economical Feasibility
Technical Feasibility
Social Feasibility
Existing System
Disadvantages of Existing System
Proposed System
Advantages of Proposed System
5. SYSTEM SPECIFICATION 8
Hardware Requirements
Software Requirements
6.1 Python
6.2 Django
12. CONCLUSION 54
13. BIBLIOGRAPHY 55
List of Figures
6.2. Django 20
10 Screenshots 45-49
Design and Implementation of E-commerce Recommendation Model based on Cloud Computing
INTRODUCTION
With the rapid development of e-commerce, its information structure is becoming more and more complex,
and the amount of information is becoming more and more huge. Users are often lost in massive commodity
information, and businesses cannot establish effective customer relationships in massive user information.
Ecommerce has also entered the era of big data. E-commerce platform aggregates a large number of
commodity resources and customers, which not only brings more choices to customers, but also causes the
dilemma of customers' sea election resources. In the current environment, ecommerce is developing rapidly.
Because of the increasing information structure and information amount, many users will get lost in the
massive commodity information. In this case, merchants can't establish a continuous and effective customer
relationship with users in the mass of user information . With the development of e-commerce in the era of
big data, the amount of data in its field is growing geometrically, and the content of goods is rich and varied,
which not only provides users with a wide range of goods, but also provides users with richer choices. As
an important tool of e-commerce, the development of recommendation engine is also limited. The proposal
and development of cloud computing has laid a foundation for the e-commerce recommendation engine to
handle massive data and its application in clusters. With the increasing amount of information in e-
commerce, it takes a lot of time for consumers to find satisfactory information. For merchants, how to
optimize the design of websites according to consumers' interests as much as possible to facilitate consumers'
shopping has become an urgent problem to be solved. With the increasing amount of information,
recommendation system has become an indispensable part of every e-commerce platform. In order to
improve the service level and market competitiveness of Internet commerce, many e-commerce websites
began to introduce data mining technology. According to users' purchase records and historical browsing
records, they found products that users like and recommended them to users. As a platform for customers to
shop online, e-commerce websites hope to recommend products that may be of interest to customers more
accurately by using more efficient recommendation technology. Customization, personalization and
differentiation have become the core competitiveness of enterprises. The two major trends and challenges
of data analysis are: the expansion of data volume and the increasing demand for deep data analysis. E-
commerce recommendation system can capture key data from rich data information, tap potential customers
for businesses, expand sales scope, and provide product recommendation for old customers and expand user
groups. In order to manage massive commodity information and user information more efficiently, this
paper proposes a solution to build e-commerce recommendation system on the basic platform of cloud
computing, so as to improve the ability of massive data mining and business intelligence analysis, and
achieve high-performance computing at a lower cost.
LITERATURE SURVEY
3) About the services of big data and cloud computing for e-commere.
AUTHORS: E. Abrahamsen, O. M. Brastein, and B. Lie
Cloud hosting provides an alternative to on-site devices. Instead of storing data on one computer, cloud
technology allows keeping information on different devices. These devices rely on separate servers located
quite far from each other. However, each machine is interconnected and works as a unified system. Most e-
Commerce businesses use a hosting server to harness the processing power of several devices. Thus, they
create a cluster of servers. And this cluster is called a cloud. Online stores have different functionality than
other sites. They need additional support and flexibility to maintain databases, protect personal data, process
payments, and track sales. Therefore, adopting or migrating to the cloud is an excellent solution to problems
other devices can’t solve.
There can be no doubt that contemporary developments in information technology, including information
systems developments, have changed business and organizational practices in many ways. For example, the
world's financial systems are so closely coupled that that a small decrease in interest rates in the United
States may cause a disproportionately large rise in stock market values in South East Asia. The information
revolution has created entirely new ways of marketing, such that we now see very changed relationships
between producers, distributors and customers. It has also led to changes in the way in which organizations
are managed, the way in which they are structured, and the way in which they deal with their products and
services. In particular, it creates a number of opportunities and challenges that affect the way in which data
is converted into information and then into knowledge. It poses many opportunities for management of the
environment for these transfers, such as to enhance the productivity of individuals and organizations. This
paper discuses interactions and intersections between organizations, information technology and
information systems, and the ways in which the creative use of information systems changes organizational
environments
SYSTEM STUDY
FEASIBILITY STUDY
The feasibility of the project is analyzed in this phase and business proposal is put forth with a
very general plan for the project and some cost estimates. During system analysis the feasibility study of
the proposed system is to be carried out. This is to ensure that the proposed system is not a burden to the
company. For feasibility analysis, some understanding of the major requirements for the system is
essential.
ECONOMICAL FEASIBILITY
TECHNICAL FEASIBILITY
SOCIAL FEASIBILITY
ECONOMICAL FEASIBILITY
This study is carried out to check the economic impact that the system will have on the organization.
The amount of fund that the company can pour into the research and development of the system is limited.
The expenditures must be justified. Thus the developed system as well within the budget and this was
achieved because most of the technologies used are freely available. Only the customized products had to
be purchased.
TECHNICAL FEASIBILITY
This study is carried out to check the technical feasibility, that is, the technical requirements
of the system. Any system developed must not have a high demand on the available technical resources.
This will lead to high demands on the available technical resources. This will lead to high demands being
placed on the client. The developed system must have a modest requirement, as only minimal or null changes
are required for implementing this system.
SOCIAL FEASIBILITY
The aspect of study is to check the level of acceptance of the system by the user. This includes the
process of training the user to use the system efficiently. The user must not feel threatened by the system,
instead must accept it as a necessity. The level of acceptance by the users solely depends on the methods
that are employed to educate the user about the system and to make him familiar with it. His level of
The user must not feel threatened by the system, instead must accept it as a necessity. The level of acceptance
by the users solely depends on the methods that are employed to educate the user about the system and to
make him familiar with it. His level of confidence must be raised so that he is also able to make some
constructive criticism, which is welcomed, as he is the final user of the system.
SYSTEM ANALYSIS
EXISTING SYSTEM:
The huge data scale brought by big data environment makes it difficult for traditional data processing
methods to meet the data processing requirements in this environment. In the existing online e-commerce
platform, in order to make online shopping convenient and fast for users, the advertising space on each page
is manually configured for commodity recommendation. Doing so not only makes all users see the same
results, but also increases the workload of background configuration. At this time, it is necessary to establish
a recommendation system to provide different products for different users. An e-commerce platform often
includes many modules, including commodity management, order management, inventory management,
store management, sales management, user management and other modules, which together constitute the
overall framework of the existing e-commerce platform . In the big data environment, the data scale is
usually tens of millions or even billions. In this context, data mining will face serious scalability problems,
and cloud computing is considered as an effective means to solve this problem.
PROPOSED SYSTEM:
E-commerce recommendation system can capture key data from rich data information, tap potential
customers for businesses, expand sales scope, and provide product recommendation for old customers and
expand user groups .In order to manage massive commodity information and user information more
efficiently, this paper proposes a solution to build e-commerce recommendation system on the basic
platform of cloud computing, so as to improve the ability of massive data mining and business intelligence
analysis, and achieve high-performance computing at a lower cost.
Using recommendation algorithms such as data mining can recommend products that
users like to consumers and improve the turnover rate of e-commerce websites.
Algorithm: matrix factorization, Singular value decomposition.
SYSTEM SPECIFICATION
HARDWARE REQUIREMENTS:
System : Intel i3
Ram : 4GB.
SOFTWARE REQUIREMENTS:
PYTHON
Python is a general-purpose interpreted, interactive, object-oriented, and high-level programming language.
An interpreted language, Python has a design philosophy that emphasizes code readability (notably
using whitespace indentation to delimit code blocks rather than curly brackets or keywords), and a syntax
that allows programmers to express concepts in fewer lines of code than might be used in languages such
as C++or Java. It provides constructs that enable clear programming on both small and large scales. Python
interpreters are available for many operating systems. Python, the reference implementation of Python,
is open source software and has a community-based development model, as do nearly all of its variant
implementations. Python is managed by the non-profit Python Software Foundation. Python features
a dynamic type system and automatic memory management. It supports multiple programming paradigms,
including object-oriented, imperative, functional and procedural, and has a large and
comprehensive standard library.
Reserved Words
The following list shows the Python keywords. These are reserved words and you cannot use them as
constant or variable or any other identifier names. All the Python keywords contain lowercase letters only.
And exec not assert finally or break for pass class from print continue global raise def if return del import
try elif in while else is with expect lambda yield Lines and Indentation Python provides no braces to
indicate blocks of code for class and function definitions or flow control. Blocks of code are denoted by
line indentation, which is rigidly enforced.
The number of spaces in the indentation is variable, but all statements within the block must be indented the
Note − Do not try to understand the logic at this point of time. Just make sure you understood various blocks
even if they are without braces.
#!/usr/bin/python
import sys
try:
# open file stream
file = open(file_name, "w")
except IOError:
print "There was an error writing to", file_name
[Link]()
print "Enter '", file_finish,
print "' When finished"
while file_text != file_finish:
file_text = raw_input("Enter text: ")
if file_text == file_finish:
# close the file
[Link]
break
[Link](file_text)
total = item_one + \
item_two + \
item_three
Statements contained within the [], {}, or () brackets do not need to use the line continuation character. For
example −
The triple quotes are used to span the string across multiple lines. For example, all the following are legal −
word = 'word'
sentence = "This is a sentence."
Live Demo
#!/usr/bin/python
# First comment
print "Hello, Python!" # second comment
This produces the following result −
Hello, Python!
You can type a comment on the same line after a statement or expression −
name = "Madisetti" # This is again comment
You can comment multiple lines as follows −
# This is a comment.
# This is a comment, too.
# This is a comment, too.
# I said that already.
Following triple-quoted string is also ignored by Python interpreter and can be used as a multiline
comments:
'''
This is a multiline
comment.
'''
Using Blank Lines
A line containing only whitespace, possibly with a comment, is known as a blank line and Python totally
ignores it.
In an interactive interpreter session, you must enter an empty physical line to terminate a multiline statement.
Waiting for the User
The following line of the program displays the prompt, the statement saying “Press the enter key to exit”,
and waits for the user to take action −
#!/usr/bin/python
raw_input("\n\nPress the enter key to exit.")
dict['Alice']:
Traceback (most recent call last):
File "[Link]", line 4, in <module>
print "dict['Alice']: ", dict['Alice'];
KeyError: 'Alice'
Updating Dictionary
You can update a dictionary by adding a new entry or a key-value pair, modifying an existing entry, or
deleting an existing entry as shown below in the simple example −
Live Demo
#!/usr/bin/python
dict = {'Name': 'Zara', 'Age': 7, 'Class': 'First'}
dict['Age'] = 8; # update existing entry
dict['School'] = "DPS School"; # Add new entry
print "dict['Age']: ", dict['Age']
print "dict['School']: ", dict['School']
When the above code is executed, it produces the following result −
dict['Age']: 8
dict['School']: DPS School
print tup3;
When the above code is executed, it produces the following result −
(12, 34.56, 'abc', 'xyz')
Delete Tuple Elements
Removing individual tuple elements is not possible. There is, of course, nothing wrong with putting together
another tuple with the undesired elements discarded.
To explicitly remove an entire tuple, just use the del statement. For example −
Live Demo
#!/usr/bin/python
tup = ('physics', 'chemistry', 1997, 2000);
print tup;
del tup;
print "After deleting tup : ";
print tup;
This produces the following result. Note an exception raised, this is because after del tup tuple does not exist
DJANGO
Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic
design. Built by experienced developers, it takes care of much of the hassle of Web development, so you
can focus on writing your app without needing to reinvent the wheel. It’s free and open source.
Django's primary goal is to ease the creation of complex, database-driven websites. Django
emphasizes reusability and "pluggability" of components, rapid development, and the principle of don't
repeat yourself. Python is used throughout, even for settings files and data models.
Django also provides an optional administrative create, read, update and delete interface that is generated
dynamically through introspection and configured via admin models
Create a Project
Whether you are on Windows or Linux, just get a terminal or a cmd prompt and navigate to the place you
want your project to be created, then use this code −
$ django-admin startproject myproject
This will create a "myproject" folder with the following structure −
myproject/
[Link]
myproject/
__init__.py
[Link]
[Link]
[Link]
The Project Structure
The “myproject” folder is just your project container, it actually contains two elements −
[Link] − This file is kind of your project local django-admin for interacting with your project via
command line (start the development server, sync db...). To get a full list of command accessible via
[Link] you can use the code −
MySQL ([Link])
PostGreSQL ([Link].postgresql_psycopg2)
Oracle ([Link]) and NoSQL DB
MongoDB (django_mongodb_engine)
Before setting any new engine, make sure you have the correct db driver installed.
You can also set others options like: TIME_ZONE, LANGUAGE_CODE, TEMPLATE…
Now that your project is created and configured make sure it's working −
$ python [Link] runserver
You will get something like the following on running the above code −
Validating models...
0 errors found
Create an Application
We assume you are in your project folder. In our main “myproject” folder, the same folder then [Link]
−
$ python [Link] startapp myapp
You just created myapp application and like project, Django create a “myapp” folder with the application
structure −
myapp/
__init__.py
[Link]
[Link]
[Link]
[Link]
__init__.py − Just to make sure python handles this folder as a package.
[Link] − This file helps you make the app modifiable in the admin interface.
[Link] − This is where all the application models are stored.
<strong>Login</strong>
</button>
</center>
</div>
</form>
</body>
</html>
The template will display a login form and post the result to our login view above. You have probably
noticed the tag in the template, which is just to prevent Cross-site Request Forgery (CSRF) attack on your
attribute.
Let's create a simple sample to see how to create and save sessions. We have built a simple login system
before (see Django form processing chapter and Django Cookies Handling chapter). Let us save the
username in a cookie so, if not signed out, when accessing our login page you won’t see the login form.
Basically, let's make our login system we used in Django Cookies handling more secure, by saving cookies
server side.
For this, first lets change our login view to save our username cookie server side −
def login(request):
SYSTEM DESIGN
Fig 7.1 System Architecture
1. The DFD is also called as bubble chart. It is a simple graphical formalism that can be used to
represent a system in terms of input data to the system, various processing carried out on this data,
and the output data is generated by this system.
2. The data flow diagram (DFD) is one of the most important modeling tools. It is used to model the
system components. These components are the system process, the data used by the process, an
external entity that interacts with the system and the information flows in the system.
3. DFD shows how the information moves through the system and how it is modified by a series of
transformations. It is a graphical technique that depicts information flow and the transformations that
are applied as data moves from input to output.
4. DFD is also known as bubble chart. A DFD may be used to represent a system at any level of
abstraction. DFD may be partitioned into levels that represent increasing information flow and
functional detail.
UML DIAGRAMS
UML stands for Unified Modeling Language. UML is a standardized general-purpose modeling
language in the field of object-oriented software engineering. The standard is managed, and was created by,
the Object Management Group.
The goal is for UML to become a common language for creating models of object oriented computer
software. In its current form UML is comprised of two major components: a Meta-model and a notation. In
the future, some form of method or process may also be added to; or associated with, UML.
The Unified Modeling Language is a standard language for specifying, Visualization, Constructing and
documenting the artifacts of software system, as well as for business modeling and other non-software
systems.
The UML represents a collection of best engineering practices that have proven successful in the
modeling of large and complex systems. The UML is a very important part of developing object oriented
software and the software development process. The UML uses mostly graphical notations to express the
design of software projects.
GOALS:
The Primary goals in the design of the UML are as follows:
1. Provide users a ready-to-use, expressive visual modeling Language so that they can develop and
exchange meaningful models.
2. Provide extendibility and specialization mechanisms to extend the core concepts.
3. Be independent of particular programming languages and development process.
4. Provide a formal basis for understanding the modeling language.
5. Encourage the growth of OO tools market.
6. Support higher level development concepts such as collaborations, frameworks, patterns and
components.
7. Integrate best practices.
A use case diagram in the Unified Modeling Language (UML) is a type of behavioral diagram
defined by and created from a Use-case analysis. Its purpose is to present a graphical overview of the
functionality provided by a system in terms of actors, their goals (represented as use cases), and any
dependencies between those use cases. The main purpose of a use case diagram is to show what system
functions are performed for which actor. Roles of the actors in the system can be depicted.
CLASS DIAGRAM
In software engineering, a class diagram in the Unified Modeling Language (UML) is a type of static
structure diagram that describes the structure of a system by showing the system's classes, their attributes,
operations (or methods), and the relationships among the classes. It explains which class contains
information.
SEQUENCE DIAGRAM
A sequence diagram in Unified Modeling Language (UML) is a kind of interaction diagram that shows
how processes operate with one another and in what order. It is a construct of a Message Sequence Chart.
Sequence diagrams are sometimes called event diagrams, event scenarios, and timing diagrams.
ACTIVITY DIAGRAM
Activity diagrams are graphical representations of workflows of stepwise activities and actions with support
for choice, iteration and concurrency. In the Unified Modeling Language, activity diagrams can be used to
describe the business and operational step-by-step workflows of components in a system. An activity
diagram shows the overall flow of control.
INPUT DESIGN
The input design is the link between the information system and the user. It comprises the
developing specification and procedures for data preparation and those steps are necessary to put transaction
data in to a usable form for processing can be achieved by inspecting the computer to read data from a
written or printed document or it can occur by having people keying the data directly into the system. The
design of input focuses on controlling the amount of input required, controlling the errors, avoiding delay,
avoiding extra steps and keeping the process simple. The input is designed in such a way so that it provides
security and ease of use with retaining the privacy. Input Design considered the following things:
What data should be given as input?
How the data should be arranged or coded?
The dialog to guide the operating personnel in providing input.
Methods for preparing input validations and steps to follow when error occur.
OBJECTIVES
[Link] Design is the process of converting a user-oriented description of the input into a
computer-based system. This design is important to avoid errors in the data input process and show the
correct direction to the management for getting correct information from the computerized system.
2. It is achieved by creating user-friendly screens for the data entry to handle large volume of
data. The goal of designing input is to make data entry easier and to be free from errors. The data entry
screen is designed in such a way that all the data manipulates can be performed. It also provides record
viewing facilities.
[Link] the data is entered it will check for its validity. Data can be entered with the help of
screens. Appropriate messages are provided as when needed so that the user will not be in maize of instant.
Thus the objective of input design is to create an input layout that is easy to follow
OUTPUT DESIGN
A quality output is one, which meets the requirements of the end user and presents the
information clearly. In any system results of processing are communicated to the users and to other system
through outputs. In output design it is determined how the information is to be displaced for immediate need
and also the hard copy output. It is the most important and direct source information to the user. Efficient
and intelligent output design improves the system’s relationship to help user decision-making.
1. Designing computer output should proceed in an organized, well thought out manner; the
8. IMPLEMENTATION
Implementation is the stage of the project when the theoretical design is turned out into a working system. Thus, it
can be considered to be the most critical stage in achieving a successful new systemand in giving the user, confidence
that the new system will work and be effective.
The implementation stage involves careful planning, investigation of the existing system and it
constraints on implementation, designing of methods to achieve changeover and evaluation of
changeover methods.
MODULES
User
Admin
Data Preprocessing
Machine Learning Results
MODULES DESCRIPTION
User:
The User can register the first. While registering he required a valid user email and mobile for further
communications. Once the user register then admin can activate the user. Once admin activated the user
then user can login into our system. User can upload the dataset based on our dataset column matched. For
algorithm execution data must be in float format. Here we took rainfall dataset. User can also add the new
data for existing dataset based on our Django application. User can click the Classification in the web page
so that the data calculated MAE, MSE, LOSS, R2 score, accuracy based on the algorithms.
Admin:
Admin can login with his login details. Admin can activate the registered users. Once he activate then only
the user can login into our system. Admin can view the overall data in the browser. Admin can click the
Results in the web page so calculated MAE, MSE, LOSS, R2 score, accuracy based on the algorithms is
displayed. All algorithms execution complete then admin can see the overall accuracy in web page.
SOURCE CODE
User side views:
def UserLoginCheck(request):
if [Link] == "POST":
loginid = [Link]('loginid')
pswd = [Link]('pswd')
print("Login ID = ", loginid, ' Password = ', pswd)
try:
check = [Link](loginid=loginid, password=pswd)
status = [Link]
print('Status is = ', status)
if status == "activated":
[Link]['id'] = [Link]
[Link]['loggeduser'] = [Link]
[Link]['loginid'] = loginid
[Link]['email'] = [Link]
print("User id At", [Link], status)
return render(request, 'users/[Link]', {})
else:
[Link](request, 'Your Account Not at activated')
return render(request, '[Link]')
except Exception as e:
print('Exception is ', str(e))
pass
[Link](request, 'Invalid Login id and password')
return render(request, '[Link]', {})
def UserHome(request):
return render(request, 'users/[Link]', {})
def DatasetView(request):
path = settings.MEDIA_ROOT + "//" + 'amazon [Link]'
import pandas as pd
df = pd.read_csv(path, nrows=100)
df = [Link](columns=['Uniq Id','Brand Name','Asin','Upc Ean Code', 'List Price','Quantity','About
Product',
'Product Specification','Technical Details','Product Dimensions','Image','Variants',
'Product Url', 'Stock','Product Details','Dimensions','Color','Ingredients','Direction To '
'Use','Is Amazon Seller',
'Size Quantity Variant','Product Description','Sku'])
df = df.to_html
return render(request, 'users/[Link]', {'data': df})
def data_preprocess(request):
from .utility.ecommerce_preprocess import pre_proccessed_data
df = pre_proccessed_data()
return render(request, 'users/pre_process_data.html',{'data': df})
def user_machine_learning(request):
from .[Link] import ml_scores
linear_kernel, cosine_similarity, sig_score = ml_scores()
return render(request,'users/ml_scores.html',{'lr': linear_kernel, 'cosine': cosine_similarity, 'sig':
sig_score})
def user_predictions(request):
if [Link]=='POST':
from .[Link] import rec_lin
productName = [Link]('pname')
recommend = rec_lin(productName)
recom = recommend.to_html
path = settings.MEDIA_ROOT + "//" + 'amazon [Link]'
import pandas as pd
df = pd.read_csv(path)
df = df['Product Name'].[Link]()
return render(request,'users/[Link]',{'result':
recom,'products':df,'productName':productName})
else:
path = settings.MEDIA_ROOT + "//" + 'amazon [Link]'
import pandas as pd
df = pd.read_csv(path)
df = df['Product Name'].[Link]()
return render(request, 'users/[Link]', {'products':df})
[Link]:
{%extends '[Link]'%}
{%load static%}
{%block contents%}
</div>
</div>
</header>
</div>
</section>
{%endblock%}
[Link]:
{%extends '[Link]'%}
{% load static %}
{%block contents%}
<header>
<div class="container">
<div class="intro-text">
<h2>Admin Login Form</h2>
<p>
<tr>
<td style="padding:20px;">
<button type="submit" class="btn btn-xl">
Login
</button>
</td>
<td>
<button type="reset" class="btn btn-xl">
Reset
</button>
</td>
</tr>
{% if messages %}
{% for message in messages %}
<font color='GREEN'> {{ message }}</font>
{% endfor %}
{% endif %}
</table>
</form>
</center>
</p>
</div>
</div>
</header>
{%endblock%}
SCREEN SHOTS
Home page
Register Form
Activate User
User homepage
View dataset:
ANN results:
MLR results:
SYSTEM TEST
The purpose of testing is to discover errors. Testing is the process of trying to discover every conceivable
fault or weakness in a work product. It provides a way to check the functionality of components, assemblies
and/or a finished product It is the process of exercising software with the intent of ensuring that the Software
system meets its requirements and user expectations and does not fail in an unacceptable manner. There are
various types of test. Each test type addresses a specific testing requirement.
TYPES OF TESTS
Unit testing
Unit testing involves the design of test cases that validate that the internal program logic is
functioning properly, and that program inputs produce valid outputs. All decision branches and internal code
flow should be validated. It is the testing of individual software units of the application .it is done after the
completion of an individual unit before integration. This is a structural testing, that relies on knowledge of
its construction and is invasive. Unit tests perform basic tests at component level and test a specific business
process, application, and/or system configuration. Unit tests ensure that each unique path of a business
process performs accurately to the documented specifications and contains clearly defined inputs and
expected results.
Integration testing
Integration tests are designed to test integrated software components to determine if they
actually run as one program. Testing is event driven and is more concerned with the basic outcome of
screens or fields. Integration tests demonstrate that although the components were individually satisfaction,
as shown by successfully unit testing, the combination of components is correct and consistent. Integration
testing is specifically aimed at exposing the problems that arise from the combination of components.
Functional test
Functional tests provide systematic demonstrations that functions tested are available as specified by the
business and technical requirements, system documentation, and user manuals.
Functional testing is centered on the following items:
System Test
System testing ensures that the entire integrated software system meets requirements. It tests
a configuration to ensure known and predictable results. An example of system testing is the configuration
oriented system integration test. System testing is based on process descriptions and flows, emphasizing
pre-driven process links and integration points.
Unit Testing
Unit testing is usually conducted as part of a combined code and unit test phase of the software
lifecycle, although it is not uncommon for coding and unit testing to be conducted as two distinct phases.
Test objectives
Features to be tested
Verify that the entries are of the correct format
No duplicate entries should be allowed
All links should take the user to the correct page.
Integration Testing
Software integration testing is the incremental integration testing of two or more integrated
software components on a single platform to produce failures caused by interface defects.
The task of the integration test is to check that components or software applications, e.g. components in a
software system or – one step up – software applications at the company level – interact without error.
Test Results: All the test cases mentioned above passed successfully. No defects encountered.
Acceptance Testing
User Acceptance Testing is a critical phase of any project and requires significant participation by the end
user. It also ensures that the system meets the functional requirements.
Test Results: All the test cases mentioned above passed successfully. No defects encountered.
CONCLUSION
E-commerce has become the most mainstream business model in contemporary society. With the explosive
growth of information in the era of big data in e-commerce, personalized recommendation system has
attracted more and more attention. E-commerce provides more and more shopping and consumption
platforms for people. Using recommendation algorithms such as data mining can recommend products that
users like to consumers and improve the turnover rate of e-commerce websites. With the rapid development
of internet commercial websites, the total amount of information in e-commerce system is increasing day
by day, and the problem of information overload is becoming more and more serious. Because the
recommendation system is based on user behavior, malicious user behavior should be filtered. Malicious
behaviors include users browsing certain products frequently through programs, creating a large number of
user behaviors, or businesses adjusting commodity attributes according to algorithms. The powerful storage,
operation and security functions of cloud computing, as well as the ideal mode of resource allocation and
sharing, have laid a good foundation for the development of e-commerce recommendation engine, resulting
in a brand-new business recommendation mode. In the aspect of data integration, the data analysis
middleware layer can be used to import the source data of the business system for analysis, and the data of
the business system can also be directly stored in the distributed file system layer for management and
access.
BIBLIOGRAPHY
[1] Marwan M, Kartit A, Ouahmane H. A Framework to Secure Medical Image Storage in Cloud Computing
Environment. Journal of Electronic Commerce in Organizations, vol. 16, no. 1, pp. 1-16, 2018.
[2] Isaias P, Issa T, Chang V, et al. Outlining the Issues of Cloud Computing and Sustainability
Opportunities and Risks in European Organizations: A SEM Study. Journal of Electronic Commerce in
Organizations, vol. 13, no. 4) :1-25, 2015.
[3] Somalee Datta, Keith Bettinger, Michael Snyder. Corrigendum: Secure cloud computing for genomic
data. Nature Biotechnology, vol. 34, no. 10, pp. 588-591, 2016.
[4] Datta S, Bettinger K, Snyder M. Erratum: Corrigendum: Secure cloud computing for genomic data.
Nature Biotechnology, vol. 34, no. 10, pp. 1072-1072, 2016.
[5] Liu Mingyue. About the services of big data and cloud computing for e-commerce . Information and
Computer (Theory Edition), vol. 352, no. 6, pp. 150-151, 2016.
[6] Chandra J, March S T, Mukherjee S, et al. Information Systems Frontiers. Communications of the Acm,
vol. 43, no. 1, pp. 71-79, 2016.
[7] Jovanovic J, Bagheri E. Electronic Commerce Meets the Semantic Web. It Professional, vol. 18, no. 4,
pp. 56-65, 2016.
[8] Ghosh N, Ghosh S K, Das S K. SelCSP: A Framework to Facilitate Selection of Cloud Service Providers.
Cloud Computing IEEE Transactions on, vol. 3, no. 1, pp. 66-79, 2015.
[9] Mi Rensha Aini. Research on the Application of Cloud Computing in E-commerce. Computer
Knowledge and Technology, vol. 11, no. 22, pp. 186-188, 2015.
[10] Bauer E. Improving Operational Efficiency of Applications via Cloud Computing. IEEE Cloud
Computing, vol. 5, no. 1, pp. 12-19, 2018.
[11] Zhang Lan. Research on e-commerce data caching based on cloud computing. Computer Knowledge
and Technology, vol. 12, no. 23, pp. 249-250, 2016.
[12] Chang Xueqin. Research on e-commerce logistics distribution model based on cloud computing.
Logistics Technology, vol. 34, no. 11, pp. 152-155, 2015.
[13] Herzfeldt A, Wolfenstetter T, Ertl C, et al. The Role of Individualization and Project Learning for Cloud
Service Profitability. Journal of Electronic Commerce in Organizations, vol. 16, no. 2, pp. 64-82,2018.