nomanvb commited on
Commit
f11ca36
·
1 Parent(s): 0cb4e89

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +64 -1
README.md CHANGED
@@ -4,4 +4,67 @@ language:
4
  - en
5
  metrics:
6
  - accuracy
7
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  - en
5
  metrics:
6
  - accuracy
7
+ ---
8
+ # BDMobileNumberModelV3
9
+
10
+ - **Developed by:** Ariful Ambia
11
+ - **Funded by:** Walton Hi-Tech Industries PLC.
12
+ - **Website:** https://www.waltonhil.com/
13
+ - **Model type:** [Probabilistic Model]
14
+ - **Language(s) (NLP):** [English]
15
+ - **License:** [apache-2.0]
16
+
17
+ ## Overview
18
+
19
+ Model BDMobileNumberModelV3 is a probabilistic model built using pgmpy Bayesian Network. It is trained on a large dataset of active mobile phone numbers in Bangladesh over the last 5 years. This model predicts the accuracy/liveliness of a given mobile number, providing a probability as output. The model has been tested against known datasets, and it is observed that a probability less than 0.0000001 indicates that the number is likely inactive, wrong, or not currently in service.
20
+
21
+ ## How to Use
22
+
23
+ ### Installation
24
+
25
+ Install the required libraries:
26
+ ``` bash
27
+ pip install pgmpy pandas
28
+ ```
29
+
30
+ ### Load the Model
31
+ ``` python
32
+ from pgmpy.models import BayesianNetwork
33
+ # Load the model
34
+ model3 = BayesianNetwork.load('BDMobileNumberModelV3.bif', filetype='bif')
35
+ ```
36
+
37
+ ### Example Usage
38
+ ``` python
39
+ # Test phone number: +8801716312XXX
40
+ # Remove +8801 and the last 3 digits, resulting in '716312'
41
+ phone_number = {'D1': '7', 'D2': '1', 'D3': '6', 'D4': '3', 'D5': '1', 'D6': '2'}
42
+
43
+ # Get the state probability
44
+ probability = model3.get_state_probability(phone_number)
45
+
46
+ # Display the result
47
+ print(f"Result: {probability}")
48
+
49
+ # Interpretation
50
+ if probability > 0.0000001:
51
+ print("The phone number +8801716312XXX is most likely in active service.")
52
+ else:
53
+ print("The phone number +8801716312XXX is likely inactive or incorrect.")
54
+
55
+ ```
56
+
57
+ ### Adjusting Phone Number Digits
58
+ ``` python
59
+ # Test phone number: +8801716312XXX
60
+ # Remove +8801 and try with fewer digits, e.g., '71631'
61
+ shortened_phone_number = {'D1': '7', 'D2': '1', 'D3': '6', 'D4': '3', 'D5': '1'}
62
+
63
+ # Get the state probability
64
+ shortened_probability = model3.get_state_probability(shortened_phone_number)
65
+
66
+ # Display the result
67
+ print(f"Result: {shortened_probability}")
68
+
69
+ ```
70
+