Question: You are required to extract data from relevant dataset(s), namely the transaction.txt, frauddescription.txt, and descriptions.txt. Three datasets are provided. The first dataset(description.txt) contains the description

You are required to extract data from relevant dataset(s), namely the transaction.txt, frauddescription.txt, and descriptions.txt.

Three datasets are provided. The first dataset(description.txt) contains the description of genuine transactions. The second dataset(fraudulent-transaction.txt) contains the description of fraudulent transactions. The last dataset(transaction.txt) contains the actual transactions (10,000). The transaction dataset contains the description of the transactions, the amount of the transactions and the locations of the transactions. The locations are not real location to avoid tracing any transaction to anyone. The locations are just Euclidean coordinates in x, and y points. The following are the attributes of the transaction dataset, also see Figure 1.

Figure 1: sample data from the transaction.txt

You are required to extract data from relevant dataset(s), namely the transaction.txt,

* The user id

* The transaction id

* The description of the transaction

* The amount of the transaction

* The x coordinate of each transaction

* The y coordinate of each transaction

* A Boolean label that represents whether the transaction is fraudulent or not.

1. Design and develop 4 python modules namely: dataset_module, distance_module, statistics_module and test_module.

2. Implement distance_module containing two functions.

a. Implement a function that computes the distance between any two given transactions of a user.

b. And another function should be implemented for computing the distance of transactions of any two users.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!