mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-03-15 02:59:50 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
0708d4b851
commit
d2dbdc1136
@ -28,13 +28,13 @@ class DbScan:
|
|||||||
obj.print_dbscan()
|
obj.print_dbscan()
|
||||||
obj.plot_dbscan()
|
obj.plot_dbscan()
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import math
|
import math
|
||||||
|
|
||||||
import matplotlib.pyplot as plt
|
import matplotlib.pyplot as plt
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
from typing import dict, list
|
from typing import dict, list
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
minpts: int,
|
minpts: int,
|
||||||
@ -217,7 +217,8 @@ class DbScan:
|
|||||||
plt.legend(["Core", "Noise"])
|
plt.legend(["Core", "Noise"])
|
||||||
plt.show()
|
plt.show()
|
||||||
print("Plotted Successfully")
|
print("Plotted Successfully")
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
import doctest
|
import doctest
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user