randomclassifier 0.1.4__tar.gz → 0.1.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of randomclassifier might be problematic. Click here for more details.
- {randomclassifier-0.1.4/src/randomclassifier.egg-info → randomclassifier-0.1.5}/PKG-INFO +1 -1
- {randomclassifier-0.1.4 → randomclassifier-0.1.5}/pyproject.toml +1 -1
- {randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/dl_lab/__init__.py +1 -1
- {randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/dl_lab/programs.py +4 -12
- {randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/randomclassifier/__init__.py +1 -1
- {randomclassifier-0.1.4 → randomclassifier-0.1.5/src/randomclassifier.egg-info}/PKG-INFO +1 -1
- {randomclassifier-0.1.4 → randomclassifier-0.1.5}/MANIFEST.in +0 -0
- {randomclassifier-0.1.4 → randomclassifier-0.1.5}/README.md +0 -0
- {randomclassifier-0.1.4 → randomclassifier-0.1.5}/setup.cfg +0 -0
- {randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/dl_lab/data.py +0 -0
- {randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/dl_lab/datasets/autoencoder_demo.npz +0 -0
- {randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/dl_lab/datasets/fraud_demo.csv +0 -0
- {randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/dl_lab/datasets/freesound_community-speech-female_hpsmodel-85388.mp3 +0 -0
- {randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/dl_lab/datasets/freesound_community-speech-female_hpsmodel-85388.wav +0 -0
- {randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/dl_lab/datasets/images.jpg +0 -0
- {randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/dl_lab/datasets/sample_image.jpg +0 -0
- {randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/dl_lab/datasets/share_data.csv +0 -0
- {randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/dl_lab/datasets/traffic_sample.jpg +0 -0
- {randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/dl_lab/datasets/transactions.csv +0 -0
- {randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/dl_lab/datasets/xor.csv +0 -0
- {randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/randomclassifier/data.py +0 -0
- {randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/randomclassifier/datasets/autoencoder_demo.npz +0 -0
- {randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/randomclassifier/datasets/fraud_demo.csv +0 -0
- {randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/randomclassifier/datasets/freesound_community-speech-female_hpsmodel-85388.mp3 +0 -0
- {randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/randomclassifier/datasets/freesound_community-speech-female_hpsmodel-85388.wav +0 -0
- {randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/randomclassifier/datasets/images.jpg +0 -0
- {randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/randomclassifier/datasets/sample_image.jpg +0 -0
- {randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/randomclassifier/datasets/share_data.csv +0 -0
- {randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/randomclassifier/datasets/traffic_sample.jpg +0 -0
- {randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/randomclassifier/datasets/transactions.csv +0 -0
- {randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/randomclassifier/datasets/xor.csv +0 -0
- {randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/randomclassifier/programs.py +0 -0
- {randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/randomclassifier.egg-info/SOURCES.txt +0 -0
- {randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/randomclassifier.egg-info/dependency_links.txt +0 -0
- {randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/randomclassifier.egg-info/requires.txt +0 -0
- {randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/randomclassifier.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Reusable helpers for the Deep Learning Lab notebooks."""
|
|
2
2
|
|
|
3
|
-
__version__ = "0.1.
|
|
3
|
+
__version__ = "0.1.5"
|
|
4
4
|
|
|
5
5
|
from .programs import PROGRAM_TITLES, list_programs, program_menu, run_program, show_program
|
|
6
6
|
from randomclassifier.data import datasets, dataset, save_dataset_for_program
|
|
@@ -15,7 +15,6 @@ PROGRAM_TITLES = {
|
|
|
15
15
|
PROGRAMS_CODE = {
|
|
16
16
|
1: '''from sklearn.neural_network import MLPClassifier
|
|
17
17
|
|
|
18
|
-
# Input data (XOR)
|
|
19
18
|
X = [[0, 0], [0, 1], [1, 0], [1, 1]]
|
|
20
19
|
y = [0, 1, 1, 0]
|
|
21
20
|
|
|
@@ -76,9 +75,7 @@ plt.axis("off")
|
|
|
76
75
|
plt.tight_layout()
|
|
77
76
|
plt.show()''',
|
|
78
77
|
|
|
79
|
-
4: '''
|
|
80
|
-
# Install once if needed: %pip install SpeechRecognition pydub
|
|
81
|
-
import speech_recognition as sr
|
|
78
|
+
4: '''import speech_recognition as sr
|
|
82
79
|
|
|
83
80
|
audio_file = input("Enter the full path of a WAV/AIFF/FLAC audio file: ").strip().strip("\"")
|
|
84
81
|
recognizer = sr.Recognizer()
|
|
@@ -97,9 +94,7 @@ except sr.RequestError as e:
|
|
|
97
94
|
except Exception as e:
|
|
98
95
|
print("Error:", e)''',
|
|
99
96
|
|
|
100
|
-
5: '''
|
|
101
|
-
# Install once if needed: %pip install ultralytics opencv-python pandas matplotlib
|
|
102
|
-
import cv2
|
|
97
|
+
5: '''import cv2
|
|
103
98
|
import pandas as pd
|
|
104
99
|
import matplotlib.pyplot as plt
|
|
105
100
|
from pathlib import Path
|
|
@@ -185,8 +180,7 @@ print("Highest Risk Company:", highest["company"])
|
|
|
185
180
|
print("Fraud Probability:", round(highest["fraud_prob"], 4))
|
|
186
181
|
print("Status:", "Fraud" if highest["fraud_prob"] > 0.5 else "Legitimate")''',
|
|
187
182
|
|
|
188
|
-
7: '''
|
|
189
|
-
import numpy as np
|
|
183
|
+
7: '''import numpy as np
|
|
190
184
|
import matplotlib.pyplot as plt
|
|
191
185
|
from scipy.special import expit
|
|
192
186
|
from sklearn.datasets import load_digits
|
|
@@ -267,9 +261,7 @@ print("Training completed!")
|
|
|
267
261
|
predict("good movie")
|
|
268
262
|
predict("bad movie")''',
|
|
269
263
|
|
|
270
|
-
9: '''
|
|
271
|
-
# Install once if needed: %pip install SpeechRecognition PyAudio
|
|
272
|
-
import speech_recognition as sr
|
|
264
|
+
9: '''import speech_recognition as sr
|
|
273
265
|
|
|
274
266
|
recognizer = sr.Recognizer()
|
|
275
267
|
try:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/randomclassifier/datasets/autoencoder_demo.npz
RENAMED
|
File without changes
|
{randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/randomclassifier/datasets/fraud_demo.csv
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/randomclassifier/datasets/sample_image.jpg
RENAMED
|
File without changes
|
{randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/randomclassifier/datasets/share_data.csv
RENAMED
|
File without changes
|
{randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/randomclassifier/datasets/traffic_sample.jpg
RENAMED
|
File without changes
|
{randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/randomclassifier/datasets/transactions.csv
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/randomclassifier.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/randomclassifier.egg-info/requires.txt
RENAMED
|
File without changes
|
{randomclassifier-0.1.4 → randomclassifier-0.1.5}/src/randomclassifier.egg-info/top_level.txt
RENAMED
|
File without changes
|