Giter Site home page Giter Site logo

shubham0204 / spam_classification_tf Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 3.0 1008 KB

A TensorFlow Project which detects spam messages and uses this capability in Android apps.

License: Apache License 2.0

Python 100.00%
tensorflow keras python3 spam-classification android-application

spam_classification_tf's Introduction

Spam_Classification_TF

This project is quite old, and needs a refresh!

spam_classification_tf's People

Contributors

shubham0204 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

spam_classification_tf's Issues

ValueError: setting an array element with a sequence.

i am getting this following error when trying to run your code ..please provide me a solution to overcome it..

3343, 171)
(3343, 2)
(2229, 171)
(2229, 2)

TypeError                                 Traceback (most recent call last)
TypeError: float() argument must be a string or a number, not 'Tensor'

The above exception was the direct cause of the following exception:

ValueError                                Traceback (most recent call last)
<ipython-input-16-7996db5b94d7> in <module>()
     13 print( test_Y.shape )
     14 
---> 15 classifier = Classifier( number_of_classes=2 , maxlen=171 )
     16 #classifier.load_model( 'models/model.h5' )
     17 

10 frames
/usr/local/lib/python3.6/dist-packages/numpy/core/_asarray.py in asarray(a, dtype, order)
     83 
     84     """
---> 85     return array(a, dtype, copy=False, order=order)
     86 
     87 

ValueError: setting an array element with a sequence.

type object 'TFLiteConverterV2' has no attribute 'from_keras_model_file'

Thanks for your guidance, great article, but I get this error when running your project:
i clone your code and run TFliteBufferConverter.py :
type object 'TFLiteConverterV2' has no attribute 'from_keras_model_file'

if i convert by my code:

converter = tf.lite.TFLiteConverter.from_keras_model(model) converter.optimizations = [tf.lite.Optimize.DEFAULT] # sử dụng optimization nếu cần tối ưu thêm tflite_model = converter.convert() with open('model_optimizations.tflite', 'wb') as f: f.write(tflite_model)
i get model.tflite , but when i push it into androi project, i cannot open app, what diffrence?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.