Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Create neuron.md #215

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

Closed
jimmydin7 wants to merge 1 commit into quicksnip-dev:main from jimmydin7:patch-1
Closed

Create neuron.md #215

jimmydin7 wants to merge 1 commit into quicksnip-dev:main from jimmydin7:patch-1

Conversation

Copy link

@jimmydin7 jimmydin7 commented Jan 8, 2025

Description

Type of Change

  • ✨ New snippet
  • πŸ›  Improvement to an existing snippet
  • 🐞 Bug fix
  • πŸ“– Documentation update
  • πŸ”§ Other (please describe):

Checklist

  • I have tested my code and verified it works as expected.
  • My code follows the style and contribution guidelines of this project.
  • Comments are added where necessary for clarity.
  • Documentation has been updated (if applicable).
  • There are no new warnings or errors from my changes.

Related Issues

Closes #

Additional Context

Screenshots (Optional)

Click to view screenshots

---
title: Basic Neuron Class
description: A Python class representing a single artificial neuron that computes the weighted sum of inputs and applies an optional activation function.
tags: python, machine-learning, neural-networks
Copy link
Collaborator

@Mathys-Gasnier Mathys-Gasnier Jan 8, 2025

Choose a reason for hiding this comment

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

Please read the guidelines in CONTRIBUTING.md before submitting any snippets, Tags shouldn't contain the name of the language they are coded in

Copy link
Collaborator

Choose a reason for hiding this comment

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

Adding typing to function could be great too !

Mathys-Gasnier reacted with thumbs up emoji
weighted_sum = np.dot(self.inputs, self.weights) + self.bias
return weighted_sum

# Example usage
Copy link
Collaborator

@Mathys-Gasnier Mathys-Gasnier Jan 8, 2025

Choose a reason for hiding this comment

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

Please follow proper formatting of snippets, using # Usage: for the usage section.
Could you also improve the example a bit ? There is some text that's not in a comment, and you could add a comment showing what the result of a calculation is/looks like

Copy link
Collaborator

majvax commented Jan 17, 2025

Hi @jimmydin7 ,

I'm closing this PR due to inactivity. There hasn't been any response or updates in the past week despite the requested changes.

If you'd like to continue working on this feature, please feel free to open a new PR when you have time to address the feedback. We appreciate your contribution attempt and welcome future submissions.

Thanks for understanding!

Closing as stale. πŸ‘‹

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

@majvax majvax majvax left review comments

@Mathys-Gasnier Mathys-Gasnier Mathys-Gasnier requested changes

@psychlone77 psychlone77 Awaiting requested review from psychlone77 psychlone77 is a code owner

@saminjay saminjay Awaiting requested review from saminjay saminjay is a code owner

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /