Skip to content

how can i get the text tag  #6

Open
@herbiel

Description

@herbiel

reviews = [
'Reply to win £100 weekly! Where will the 2006 FIFA World Cup be held? Send STOP to 87239 to end service',
'You are awarded a SiPix Digital Camera! call 09061221061 from landline. Delivery within 28days. T Cs Box177. M221BP. 2yr warranty. 150ppm. 16 . p p£3.99',
'it to 80488. Your 500 free text messages are valid until 31 December 2005.',
'Hey Sam, Are you coming for a cricket game tomorrow',
"Why don't you wait 'til at least wednesday to see if you get your ."
]
model.predict(reviews)
array([[0.6472808 ],
[0.7122627 ],
[0.5710311 ],
[0.06721176],
[0.02479185]], dtype=float32)

can i know what's tag on reviews ?

Activity

bilal-24

bilal-24 commented on Sep 3, 2022

@bilal-24

if model prediction > 0.5 -> 1:

other situation -> 0:

1 or 0 should equal to spam or ham.

Let's some coding...

herbiel

herbiel commented on Sep 3, 2022

@herbiel
Author

can we make multi-label ,such as 0,1,2,3....

bilal-24

bilal-24 commented on Sep 5, 2022

@bilal-24

Ham -> 0
Spam -> 1

That is the binary classification problem.
Can you show multi label in this problem?

But in another project, we can use sparse_categorical_crossentropy or categorical_crossentropy and then get multi label predictions.

I think you should watch CodeBasic's CNN videos.
He was telling there, you should learn loss functions and label processing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @herbiel@bilal-24

        Issue actions

          how can i get the text tag · Issue #6 · codebasics/deep-learning-keras-tf-tutorial