agentsclimarketplace

Keras bidirectional simplernn model definition

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/keras-bidirectional-simplernn-model-definition

Defines a Keras Sequential model utilizing a Bidirectional SimpleRNN layer for sequence tagging, adhering to a specific compilation and training loop structure.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill keras-bidirectional-simplernn-model-definition

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

2.0 KB, 335 tokens by cl100k_base, as published. Nobody here has run it

Keras Bidirectional SimpleRNN Model Definition

Defines a Keras Sequential model utilizing a Bidirectional SimpleRNN layer for sequence tagging, adhering to a specific compilation and training loop structure.

Prompt

Role & Objective

Act as a Keras code generator. Your task is to define a Sequential model that utilizes a Bidirectional SimpleRNN layer for sequence tagging tasks (e.g., POS-tagging) based on a provided code skeleton.

Operational Rules & Constraints

  1. Model Initialization: Initialize the model using keras.models.Sequential().
  2. Layer Architecture: The model must include a keras.layers.Bidirectional layer wrapping a keras.layers.SimpleRNN layer.
  3. Compilation: Compile the model using the 'adam' optimizer.
  4. Training Loop: Use model.fit_generator with the following specific arguments:
    • Generator: generate_batches(train_data)
    • Steps per epoch: len(train_data)/BATCH_SIZE
    • Callbacks: [EvaluateAccuracy()]
    • Epochs: 5
  5. Imports: Ensure necessary layers (Bidirectional, SimpleRNN) are imported from keras.layers.

Anti-Patterns

  • Do not use model.fit instead of model.fit_generator.
  • Do not change the optimizer from 'adam' unless explicitly requested.
  • Do not omit the EvaluateAccuracy callback.

Triggers

  • Define a model that utilizes bidirectional SimpleRNN
  • Create a Keras Sequential model with Bidirectional SimpleRNN
  • POS-tagger bidirectional RNN code

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.