Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

neural.conf 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Please don't modify this file as your changes might be overwritten with
  2. # the next update.
  3. #
  4. # You can modify '$LOCAL_CONFDIR/rspamd.conf.local.override' to redefine
  5. # parameters defined on the top level
  6. #
  7. # You can modify '$LOCAL_CONFDIR/rspamd.conf.local' to add
  8. # parameters defined on the top level
  9. #
  10. # For specific modules or configuration you can also modify
  11. # '$LOCAL_CONFDIR/local.d/file.conf' - to add your options or rewrite defaults
  12. # '$LOCAL_CONFDIR/override.d/file.conf' - to override the defaults
  13. #
  14. # See https://rspamd.com/doc/tutorials/writing_rules.html for details
  15. neural {
  16. #servers = 127.0.0.1:6379; # Redis server to store learning data and ANN
  17. train {
  18. max_train = 1k; # Number of trains per epoch
  19. max_usages = 20; # Number of learn iterations while ANN data is valid
  20. spam_score = 8; # Score to learn spam
  21. ham_score = -2; # Score to learn ham
  22. learning_rate = 0.01; # Rate of learning (Torch only)
  23. max_iterations = 25; # Maximum iterations of learning (Torch only)
  24. }
  25. timeout = 20; # Increase redis timeout
  26. enabled = ${HAS_TORCH}; # Explicitly disable module when torch is disabled
  27. use_settings = false; # If enabled, then settings-id is used to dispatch networks
  28. # Legacy support
  29. .include(try=true,priority=5) "${DBDIR}/dynamic/fann_redis.conf"
  30. .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/fann_redis.conf"
  31. .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/fann_redis.conf"
  32. .include(try=true,priority=5) "${DBDIR}/dynamic/neural.conf"
  33. .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/neural.conf"
  34. .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/neural.conf"
  35. }