You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

neural.conf 1.3KB

1234567891011121314151617181920212223242526272829303132333435
  1. # Please don't modify this file as your changes might be overwritten with
  2. # the next update.
  3. #
  4. # You can modify 'local.d/neural.conf' to add and merge
  5. # parameters defined inside this section
  6. #
  7. # You can modify 'override.d/neural.conf' to strictly override all
  8. # parameters defined inside this section
  9. #
  10. # See https://rspamd.com/doc/faq.html#what-are-the-locald-and-overrided-directories
  11. # for details
  12. #
  13. # Module documentation can be found at https://rspamd.com/doc/modules/neural.html
  14. neural {
  15. #servers = 127.0.0.1:6379; # Redis server to store learning data and ANN
  16. train {
  17. max_trains = 1k; # Number of trains per epoch
  18. max_usages = 20; # Number of learn iterations while ANN data is valid
  19. learning_rate = 0.01; # Rate of learning (Torch only)
  20. max_iterations = 25; # Maximum iterations of learning (Torch only)
  21. }
  22. timeout = 20; # Increase redis timeout
  23. # Legacy support
  24. .include(try=true,priority=5) "${DBDIR}/dynamic/fann_redis.conf"
  25. .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/fann_redis.conf"
  26. .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/fann_redis.conf"
  27. .include(try=true,priority=5) "${DBDIR}/dynamic/neural.conf"
  28. .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/neural.conf"
  29. .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/neural.conf"
  30. }