Professional Documents
Culture Documents
TRAINING
THE SAIGON INTERNATIONAL
UNIVERSITY
TOPIC:RECOMMENDER SYSTEM
MAJOR: SOFTWARE ENGINEERING
LECTURER:
DR. TRAN QUANG HUY
STUDENTS:
DOAN QUOC HUY - 8102202517
BACH XUAN CANH - 81012202528
I. Introduction............................................................................3
II. About the dataset..................................................................5
III. Overview of the System......................................................9
IV. The operation of the system...............................................9
V. Project..................................................................................10
1. Importing Libraries:........................................................10
2. Reading Data:...................................................................10
3. Reading Customer Names and Product Names from
Text File:................................................................................11
4. Defining the load_name Function:.................................11
5. Calculating and Returning Customer Information:......13
6. Defining the Predict Function:........................................14
7. Execution:..........................................................................15
2
I. Introduction
This not only caters to individual preferences but also introduces users to a
diverse range of content they might not have discovered on their own. The
marriage of AI and entertainment transforms passive viewership into an
interactive and engaging experience, fostering a deeper connection between
users and the platform.
Conclusion:
In conclusion, Recommender Systems are not just technological innovations;
they represent a paradigm shift in how businesses engage with users and how
individuals interact with digital platforms. As these systems continue to evolve,
striking the right balance between personalization, ethics, and user satisfaction
will be key to unlocking their full potential across diverse sectors. Embracing
the power of AI-driven recommendations is not just a choice; it's a strategic
imperative in today's competitive and dynamic landscape.
4
II. About the dataset
File DSSP.csv
Next is the MAHOA.csv file that we encrypted to execute the model, and for
example some customers we also encrypted.
5
File MAHOA.csv
6
File DATA.csv
Next is the test.csv file, which we also encode into vectors like the DATA.csv
file and here are some data collected to test the model.
7
File test.csv
8
III. Overview of the System
Inception Point:
Product recommendation systems represent intricate orchestrations of
algorithms and machine learning, delving into the nuances of user data to
furnish personalized recommendations for products, services, or content.
They are not merely technological tools but rather intelligent, informed
companions embarking on the journey of exploration and discovery.
Broad Application:
The impact of recommendation systems extends far beyond online shopping,
permeating various sectors such as online entertainment, travel, education,
and even social networks. From crafting personalized playlists on streaming
platforms to suggesting tailored learning content, recommendation systems
redefine the dynamics of our interactions with the digital landscape.
9
categorizing data, then providing personalized recommendations for
users.
V. Project
1. Importing Libraries:
This imports the pandas library and assigns it the alias pd.
2. Reading Data:
In this phase, the project reads and loads the relevant dataset. This dataset
likely contains information about customer behaviors, preferences, and
interactions with various products. Proper data preprocessing techniques may
be applied at this stage.
Reading Customer Names and Product Names from Text File:
It reads data from two CSV files (DATA.csv and test.csv) into pandas
DataFrames (movies and movies_test).
10
3. Reading Customer Names and Product Names from Text
File:
This step ensures that the system recognizes and adapts to individual
preferences and product catalog updates.
11
Read the first line from the text file (X = name.readline()):
- The data in this line (assumed to be customer names) is processed to separate
customer names.
- If encountering a ',' or ']', it will add the constructed name to the list and reset
the variable 'ten' to start building a new name.
- If it is not a separator or newline character, it will add the character to the
'ten' variable.
Return the lists of customer names and product names (return ten_kh,
ten_sp):
- The function returns two constructed lists, one containing customer names
and the other containing product names.
12
5. Calculating and Returning Customer Information:
13
- If the customer is not the one currently examined (different from ID_chu),
check if they made purchases at the same time as any of the times bought by
the currently examined customer.
- If yes, increase the value of the variable count[i] by 1.
14
- If not, add it to the SP list.
Print out the list of recommended products:
- Use the print command to display on the screen the list of recommended
products (SP).
7. Execution:
The script then executes by calling the Predict function with a specified
customer name.
15