- Đây là công cụ giúp so sánh phân bố giữa 2 dataset theo từng biến riêng rẽ. Tất cả các hình vẽ ssau đó sẽ được lưu lại trong directory mặc định là 'your_current_working_directory/data1_data2/picture/'
Ví dụ
from ngocbien_analysis import DistributionPlot
plot = DistributionPlot(data1, data2).plot2data()
Với câu lệnh trên, tất cả các biến sẽ đc so sánh, visualize và lưu vào directory như trên.
from ngocbien_analysis import DistributionPlot
DistributionPlot(data1, data2, nmax=9, label=['data1', 'data2'], is_save=True).plot2data()
Ta có một số key paramater như sau:
- nmax : Số hình vẽ tối đa trong 1 khung hình, ở đây 9 tức ta sẽ có 3x3 hình trong 1 pictures. Nếu bạn có quá nhiều biến bạn có thể chọn là 16, hay chọn là 3 trong trường hợp ngược lại.
- is_save : Mặc định là True để lưu hình vẽ vào folder trên.
- label: mặc định là data1 và data2, bạn có thể thay đổi để phù hợp, ví dụ good, bad, các label này được dùng làm legend trong hình vẽ và tạo ra tên folder chứa các hình vẽ đó.
- Ngoài ra, ta có thể chỉnh độ sáng, màu sắc, và nhiều lựa chọn khác cho các hình vẽ này bằng cách chỉnh các tham số dưới đây.
class DistributionPlot:
def __init__(self, data1, data2=None, is_save=True, **kwargs):
self.data1 = data1
self.data2 = data2
self.nmax = 9
self.label = ['data1', 'data2']
self.num_types = ['float32', 'float64', 'int16', 'int32', 'int64', 'bool', 'int8']
self.is_save = is_save
self.alpha = [.6, .4]
self.width = .9
self.wspace = .15
self.hspace = .25
self.disable_xticks = False
self.disable_yticks = True
- Như vậy ta có thể thay đổi các tham số mặc định, ví dụ như:
from ngocbien_analysis import DistributionPlot
plot = DistributionPlot(data1=data1, data2=data2)
plot.label = ['good', 'bad']
plot.nmax = 4
plot.plot2data()
Các dự định tiếp theo:
- Visualize đơn biến cho 1 dataset.
- Xây dựng 1 hàm để lựa chọn ra top các features có phân bố khác biệt nhất giữa 2 tập data set. Việc này giúp quá trình phân tích tốt hơn trong trường hợp có quá nhiều features.
- Xây dựng một số các công cụ phân tích đa biến. Công cụ này có thể tích hợp công hợp công cụ test để chỉ lọc ra các phân tích giá trị để visualize, giúp các phân tích có chất lượng tốt hơn.
Metadata
Release files for ngocbien-analysis 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ngocbien_analysis-0.3-py3-none-any.whl | Python 3 | none | any | Details for ngocbien_analysis-0.3-py3-none-any.whl |
Release files / ngocbien_analysis-0.3-py3-none-any.whl
| Download URL | ngocbien_analysis-0.3-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
947c2159b607c8adb6e770a961d82e04ef80f4aae71883fb6cad8a4445ca3082
|
|
BLAKE2b-256 checksum How to use checksums |
734b95fba7ad837079b636b044161a0aaa3a266b8005037adb4688251f23867b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.3
|
Security for ngocbien-analysis 0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.