Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: add scikit-learn and tensorflow model validator #34

Merged
merged 22 commits into from
Jun 3, 2024

Conversation

Ghefira233
Copy link
Contributor

@Ghefira233 Ghefira233 commented May 28, 2024

feature:

  1. scikit-learn and tensorflow model validator
  2. remove kumparanian de command

@Ghefira233 Ghefira233 self-assigned this May 29, 2024
@zavliju
Copy link
Contributor

zavliju commented May 29, 2024

update Readme nya juga ya @Ghefira233

"KBRN, Pekanbaru (MCH): Kloter Tujuh Embarkasi Batam yang mengangkut Jemaah Calon Haji (JCH)"
]

if model_extension == ".pickle" or model_extension == ".pkl":
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kalo pakai in aja gimana?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated mas

error_msg = "Model should contains predict method"
with self.assertRaisesRegex(AttributeError, error_msg):
ds.model.verify(file_name)
with open(self.file_path, "wb") as f:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kalau bisa jangan f aja ya 😅

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hoo iya lupa hehe maaf mas

)


def evaluate(model_path, file_path, test_set_path, data_type=None):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kira-kira kenapa save, verify, dan evaluate ga dimasukkan ke class Model seperti load ya?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm supaya bisa dipakai secara independen dan ga perlu jadi instance dari class 'Model' sih.. dari code yang sebelumnya juga dia jadi fungsi masing-masing mas. kalo load model nya saja yang jadi fungsi juga gimana mas? jadi ga perlu ada class

run: |
pip install dist/*.whl

- name: Install make
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw aku baru ngeh, make itu mesti diinstall dulu ya, ga otomatatis ada di ubuntu?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh iya dia pre installed ya? aku coba remove dulu untuk ngetes

Copy link
Contributor Author

@Ghefira233 Ghefira233 May 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok aman mas, https://linuxgenie.net/install-use-make-ubuntu-22-04/#post-13800-_zdv0ivbkawn9
bener ternyata pre installed 🙏 Normally, the make command is pre-installed on your Ubuntu 22.04.


tf_model = Sequential()
tf_model.add(
Embedding(input_dim=1000, output_dim=64, input_length=10, name="embedding")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aman buat dikecilin lagi ga ya, biar kecilin size model yang buat di test juga?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aman mas, udah aku kecilin jadi Embedding(input_dim=50, output_dim=4, input_length=10, name="embedding"). sama buat tf_valid_model.keras untuk test juga udah aku kecilin sekarang jadi 604 KB

@@ -13,21 +13,25 @@ license = "kumparan"
readme = "README.md"
packages = [
{ include = "kumparanian" },
{ include = "kumparanian/de" },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yg ini kenapa dihapus?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kemarin nanya mas malik katanya udah ga di pakai mas terus katanya dihapus aja

@zavliju
Copy link
Contributor

zavliju commented Jun 3, 2024

lgtm

@zavliju zavliju merged commit d928f09 into master Jun 3, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants