ktrain is a Python library that makes deep learning and AI more accessible and easier to apply. ktrain is a lightweight wrapper for the deep learning library TensorFlow Keras (and other libraries) to help build, train, and deploy neural networks and other machine learning models. Inspired by ML framework extensions like fastai and ludwig, ktrain is designed to make deep learning and AI more accessible and easier to apply for both newcomers and experienced practitioners. With only a few lines of code, ktrain allows you to easily and quickly. ktrain purposely pins to a lower version of transformers to include support for older versions of TensorFlow. If you need a newer version of transformers, it is usually safe for you to upgrade transformers, as long as you do it after installing ktrain. As of v0.30.x, TensorFlow installation is optional and only required if training neural networks.

Features

  • Sequence Labeling (NER): Bidirectional LSTM with optional CRF layer and various embedding schemes such as pretrained BERT and fasttext word embeddings and character embeddings
  • Unsupervised Topic Modeling with LDA
  • Text Summarization: summarize long documents with a pretrained BART model - no training required
  • Zero-Shot Learning: classify documents into user-provided topics without training examples
  • Keyphrase Extraction: extract keywords from documents
  • image classification (e.g., ResNet, Wide ResNet, Inception)

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow ktrain

ktrain Web Site

You Might Also Like
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

Build gen AI apps with an all-in-one modern database: MongoDB Atlas

MongoDB Atlas provides built-in vector search and a flexible document model so developers can build, scale, and run gen AI apps without stitching together multiple databases. From LLM integration to semantic search, Atlas simplifies your AI architecture—and it’s free to get started.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of ktrain!

Additional Project Details

Programming Language

Python

Related Categories

Python Education Software, Python Machine Learning Software, Python Deep Learning Frameworks

Registered

2022-08-22